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:
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