Added 'insert cms page' button
authorMarcel Werk <burntime@woltlab.com>
Thu, 2 Feb 2017 15:51:52 +0000 (16:51 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 2 Feb 2017 15:51:52 +0000 (16:51 +0100)
wcfsetup/install/files/acp/templates/__boxAddContent.tpl

index 65fce79177ad87934dfa2d12ab62c2bfc78f6805..c6a273dafcebeb2f07a00a52acf5d282fa700529 100644 (file)
                        class="wysiwygTextarea" data-disable-attachments="true" data-autosave="com.woltlab.wcf.box{$action|ucfirst}-{if $action == 'edit'}{@$boxID}{else}0{/if}-{@$languageID}"
                {/if}
        >{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
+       
+       {capture append='__redactorJavaScript'}, '{@$__wcf->getPath()}js/3rdParty/redactor2/plugins/WoltLabPage.js?v={@LAST_UPDATE_TIME}'{/capture}
+       {capture append='__redactorConfig'}
+               buttonOptions.woltlabPage = { icon: 'fa-file-text-o', title: '{lang}wcf.editor.button.page{/lang}' };
+               
+               buttons.push('woltlabPage');
+               
+               config.plugins.push('WoltLabPage');
+       {/capture}
+       
        {include file='wysiwyg' wysiwygSelector='content'|concat:$languageID}
 {else}
        <div dir="ltr">