From: Alexander Ebert Date: Sun, 14 May 2023 14:55:16 +0000 (+0200) Subject: Add the phrase and permissions for media again X-Git-Tag: 6.0.0_Alpha_1~105 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce675d7bef9e45cb9ba8bf1099f29524f65e07f5;p=GitHub%2FWoltLab%2FWCF.git Add the phrase and permissions for media again Fixes WoltLab/com.woltlab.wbb#596 --- diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index eea9f65346..a6856645a2 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -17,6 +17,8 @@ {jsphrase name='wcf.editor.button.spoiler'} {jsphrase name='wcf.editor.restoreDraft'} + {include file='mediaJavaScript'} + const element = document.getElementById('{$wysiwygSelector|encodeJS}'); if (element === null) { throw new Error("Unable to find the source element '{$wysiwygSelector|encodeJS}' for the editor.") diff --git a/wcfsetup/install/files/acp/templates/wysiwyg.tpl b/wcfsetup/install/files/acp/templates/wysiwyg.tpl index eea9f65346..a6856645a2 100644 --- a/wcfsetup/install/files/acp/templates/wysiwyg.tpl +++ b/wcfsetup/install/files/acp/templates/wysiwyg.tpl @@ -17,6 +17,8 @@ {jsphrase name='wcf.editor.button.spoiler'} {jsphrase name='wcf.editor.restoreDraft'} + {include file='mediaJavaScript'} + const element = document.getElementById('{$wysiwygSelector|encodeJS}'); if (element === null) { throw new Error("Unable to find the source element '{$wysiwygSelector|encodeJS}' for the editor.")