0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

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) {
highlightSyntax($preview[0], this.siteSettings, this.session);
previewUpdated(preview) {
highlightSyntax(preview, this.siteSettings, this.session);
if (this.siteSettings.mentionables_enabled) {
const { linkSeenMentionableItems } = requirejs(
"discourse/plugins/discourse-mentionables/discourse/lib/mentionable-items-preview-styling"
);
linkSeenMentionableItems($preview, this.siteSettings);
linkSeenMentionableItems(preview, this.siteSettings);
}
this._super(...arguments);
},