Add the phrase and permissions for media again
authorAlexander Ebert <ebert@woltlab.com>
Sun, 14 May 2023 14:55:16 +0000 (16:55 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 14 May 2023 14:55:16 +0000 (16:55 +0200)
Fixes WoltLab/com.woltlab.wbb#596

com.woltlab.wcf/templates/wysiwyg.tpl
wcfsetup/install/files/acp/templates/wysiwyg.tpl

index eea9f653464ed292ca82df3cc79a47bfeabcf74c..a6856645a22f11ea81f795e73c184b94508fbda0 100644 (file)
@@ -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.")
index eea9f653464ed292ca82df3cc79a47bfeabcf74c..a6856645a22f11ea81f795e73c184b94508fbda0 100644 (file)
@@ -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.")