From ce675d7bef9e45cb9ba8bf1099f29524f65e07f5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 May 2023 16:55:16 +0200 Subject: [PATCH] Add the phrase and permissions for media again Fixes WoltLab/com.woltlab.wbb#596 --- com.woltlab.wcf/templates/wysiwyg.tpl | 2 ++ wcfsetup/install/files/acp/templates/wysiwyg.tpl | 2 ++ 2 files changed, 4 insertions(+) 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.") -- 2.20.1