1
0
Fork 0

COMPATIBILITY: previewUpdated now receives a DOM node

Dieser Commit ist enthalten in:
Angus McLeod 2022-08-25 09:49:32 +02:00
Ursprung 1f67f2ed4f
Commit f8d5e9296d

Datei anzeigen

@ -194,14 +194,14 @@ export default ComposerEditor.extend({
} }
}, },
previewUpdated($preview) { previewUpdated(preview) {
highlightSyntax($preview[0], this.siteSettings, this.session); highlightSyntax(preview, this.siteSettings, this.session);
if (this.siteSettings.mentionables_enabled) { if (this.siteSettings.mentionables_enabled) {
const { linkSeenMentionableItems } = requirejs( const { linkSeenMentionableItems } = requirejs(
"discourse/plugins/discourse-mentionables/discourse/lib/mentionable-items-preview-styling" "discourse/plugins/discourse-mentionables/discourse/lib/mentionable-items-preview-styling"
); );
linkSeenMentionableItems($preview, this.siteSettings); linkSeenMentionableItems(preview, this.siteSettings);
} }
this._super(...arguments); this._super(...arguments);
}, },