From: Marcel Werk Date: Thu, 2 Feb 2017 15:51:52 +0000 (+0100) Subject: Added 'insert cms page' button X-Git-Tag: 3.0.2~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2883220c9c847b0e1ef475a31a8b8692e19aa31;p=GitHub%2FWoltLab%2FWCF.git Added 'insert cms page' button --- diff --git a/wcfsetup/install/files/acp/templates/__boxAddContent.tpl b/wcfsetup/install/files/acp/templates/__boxAddContent.tpl index 65fce79177..c6a273dafc 100644 --- a/wcfsetup/install/files/acp/templates/__boxAddContent.tpl +++ b/wcfsetup/install/files/acp/templates/__boxAddContent.tpl @@ -29,6 +29,16 @@ 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} + + {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}