Fixed media manager in page type html/tpl
authorMarcel Werk <burntime@woltlab.com>
Sun, 9 Oct 2016 20:10:20 +0000 (22:10 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 9 Oct 2016 20:18:12 +0000 (22:18 +0200)
wcfsetup/install/files/acp/templates/__pageAddContent.tpl

index ad33852c0fd1905b275b3cf3fd85acfc3b246d02..15915f4aedb365458376deef74512752aa2f248b 100644 (file)
@@ -18,6 +18,8 @@
                <li><a href="#" id="codemirror-{@$__pageContentID}-page" class="jsTooltip" title="{lang}wcf.editor.button.page{/lang}"><span class="icon icon16 fa-file-text-o"></span></a></li>
        </ul>
        <script data-relocate="true">
+               {include file='mediaJavaScript'}
+               
                require(['WoltLabSuite/Core/Acp/Ui/CodeMirror/Media', 'WoltLabSuite/Core/Acp/Ui/CodeMirror/Page'], function(AcpUiCodeMirrorMedia, AcpUiCodeMirrorPage) {
                        new AcpUiCodeMirrorMedia('{@$__pageContentID}');
                        new AcpUiCodeMirrorPage('{@$__pageContentID}');