<dd>
<textarea name="content[{@$availableLanguage->languageID}]" id="content{@$availableLanguage->languageID}" class="wysiwygTextarea" data-autosave="com.woltlab.wcf.article{$action|ucfirst}-{if $action == 'edit'}{@$articleID}{else}0{/if}-{@$availableLanguage->languageID}">{if !$content[$availableLanguage->languageID]|empty}{$content[$availableLanguage->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='__wysiwygCmsToolbar'}
{include file='wysiwyg' wysiwygSelector='content'|concat:$availableLanguage->languageID}
{if $errorField == 'content'|concat:$availableLanguage->languageID}
{if $__wcf->getSession()->getPermission('admin.content.article.canManageArticle')}
{capture assign='contentHeaderNavigation'}
- <li><a href="{link controller='ArticleAdd' isACP=true}categoryID={@$category->categoryID}{/link}" class="button"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.acp.article.add{/lang}</span></a></li>
+ <li><a href="#" class="button jsButtonArticleAdd"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.acp.article.add{/lang}</span></a></li>
{/capture}
{/if}
});
</script>
+{include file='articleAddDialog'}
+
{include file='footer'}
<dd>
<textarea name="content[{@$availableLanguage->languageID}]" id="content{@$availableLanguage->languageID}" class="wysiwygTextarea" data-autosave="com.woltlab.wcf.article{$action|ucfirst}-{if $action == 'edit'}{@$articleID}{else}0{/if}-{@$availableLanguage->languageID}">{if !$content[$availableLanguage->languageID]|empty}{$content[$availableLanguage->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='__wysiwygCmsToolbar'}
{include file='wysiwyg' wysiwygSelector='content'|concat:$availableLanguage->languageID}
{if $errorField == 'content'|concat:$availableLanguage->languageID}
/**
* @inheritDoc
*/
- protected $requireACP = ['create', 'delete', 'getSearchResultList', 'resetPosition', 'search', 'toggle', 'update', 'updatePosition'];
+ protected $requireACP = ['create', 'delete', 'getSearchResultList', 'resetPosition', 'toggle', 'update', 'updatePosition'];
/**
* @inheritDoc