mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 20:17:41 +08:00
FIX: attempts to observe preview mutation asap (#14590)
This commit is contained in:
parent
00e8baffa2
commit
b59c419253
@ -263,6 +263,8 @@ export default Component.extend(TextareaTextManipulation, {
|
||||
didInsertElement() {
|
||||
this._super(...arguments);
|
||||
|
||||
this._previewMutationObserver = this._disablePreviewTabIndex();
|
||||
|
||||
this._textarea = this.element.querySelector("textarea.d-editor-input");
|
||||
this._$textarea = $(this._textarea);
|
||||
this._applyEmojiAutocomplete(this._$textarea);
|
||||
@ -281,8 +283,6 @@ export default Component.extend(TextareaTextManipulation, {
|
||||
});
|
||||
});
|
||||
|
||||
this._previewMutationObserver = this._disablePreviewTabIndex();
|
||||
|
||||
// disable clicking on links in the preview
|
||||
$(this.element.querySelector(".d-editor-preview")).on(
|
||||
"click.preview",
|
||||
|
Loading…
x
Reference in New Issue
Block a user