From a2883220c9c847b0e1ef475a31a8b8692e19aa31 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 2 Feb 2017 16:51:52 +0100 Subject: [PATCH] Added 'insert cms page' button --- .../install/files/acp/templates/__boxAddContent.tpl | 10 ++++++++++ 1 file changed, 10 insertions(+) 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}
-- 2.20.1