Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

DEV: Use UppyUploadMixin for docked-upload #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martin-brennan
Copy link

This commit changes the docked-upload to use the new UppyUploadMixin
from discourse core; the old mixin is no longer supported.

I also added some minor fixes around changed APIs for the docked-editor
which inherits from d-editor and implements textarea-text-manipulation,
without this fix the upload text would not be added.

This commit changes the docked-upload to use the new UppyUploadMixin
from discourse core; the old mixin is no longer supported.

I also added some minor fixes around changed APIs for the docked-editor
which inherits from d-editor and implements textarea-text-manipulation,
without this fix the upload text would not be added.
@@ -8,7 +8,10 @@ class QuickPostCooked extends PostCooked {
const $html = $(`<div class='cooked'>${this.attrs.cooked}</div>`);
this._insertQuoteControls($html);
this._showLinkCounts($html);
this._fixImageSizes($html);

// removed inhttps://github.com/discourse/discourse/commit/e305365168528883872d4ce9efd109e41149ef0a
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was broken in main for this repo, I could not do this fix without commenting this out, a further fix will need to be made here (or it could possibly be removed altogether, I didn't look into it)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant