COMPATIBILITY: previewUpdated now receives a DOM node
Dieser Commit ist enthalten in:
Ursprung
1f67f2ed4f
Commit
f8d5e9296d
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
Laden …
In neuem Issue referenzieren