From 5fb04245afeed61e0fe36a7ed9247cde90e1841e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 5 Jul 2014 19:41:07 +0200 Subject: [PATCH] Added experimental integration of message options in editor containers --- com.woltlab.wcf/coreObject.xml | 4 + .../templates/__messageFormSmilies.tpl | 2 +- .../templates/messageFormAttachments.tpl | 4 +- .../templates/messageFormSmilies.tpl | 10 +- com.woltlab.wcf/templates/messageFormTabs.tpl | 36 ++- com.woltlab.wcf/templates/wysiwyg.tpl | 30 ++- com.woltlab.wcf/templates/wysiwygToolbar.tpl | 8 - .../js/3rdParty/redactor/plugins/wbbcode.js | 4 +- .../3rdParty/redactor/plugins/wmonkeypatch.js | 7 + .../js/3rdParty/redactor/plugins/woptions.js | 38 +-- .../js/3rdParty/redactor/plugins/wupload.js | 2 +- wcfsetup/install/files/js/WCF.Message.js | 241 ++++++++++++++++-- .../smiley/category/SmileyCategory.class.php | 10 + 13 files changed, 334 insertions(+), 62 deletions(-) diff --git a/com.woltlab.wcf/coreObject.xml b/com.woltlab.wcf/coreObject.xml index 634629004e..fec7b8fbd2 100644 --- a/com.woltlab.wcf/coreObject.xml +++ b/com.woltlab.wcf/coreObject.xml @@ -57,5 +57,9 @@ + + + + diff --git a/com.woltlab.wcf/templates/__messageFormSmilies.tpl b/com.woltlab.wcf/templates/__messageFormSmilies.tpl index a4204abeba..4a9ac6af4b 100644 --- a/com.woltlab.wcf/templates/__messageFormSmilies.tpl +++ b/com.woltlab.wcf/templates/__messageFormSmilies.tpl @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/com.woltlab.wcf/templates/messageFormAttachments.tpl b/com.woltlab.wcf/templates/messageFormAttachments.tpl index 7e95eea057..07e5105a4a 100644 --- a/com.woltlab.wcf/templates/messageFormAttachments.tpl +++ b/com.woltlab.wcf/templates/messageFormAttachments.tpl @@ -1,4 +1,4 @@ -
+
    getAttachmentList()|count} style="display: none"{/if}> {foreach from=$attachmentHandler->getAttachmentList() item=$attachment}
  • @@ -49,7 +49,7 @@ 'wcf.attachment.delete.sure': '{lang}wcf.attachment.delete.sure{/lang}' }); - new WCF.Attachment.Upload($('#attachments > dl > dd > div'), $('#attachments > ul'), '{@$attachmentObjectType}', '{@$attachmentObjectID}', '{$tmpHash|encodeJS}', '{@$attachmentParentObjectID}', {@$attachmentHandler->getMaxCount()}, '{@$wysiwygContainerID}'); + new WCF.Attachment.Upload($('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > dl > dd > div'), $('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > ul'), '{@$attachmentObjectType}', '{@$attachmentObjectID}', '{$tmpHash|encodeJS}', '{@$attachmentParentObjectID}', {@$attachmentHandler->getMaxCount()}, '{@$wysiwygContainerID}'); new WCF.Action.Delete('wcf\\data\\attachment\\AttachmentAction', '.formAttachmentList > li'); }); //]]> diff --git a/com.woltlab.wcf/templates/messageFormSmilies.tpl b/com.woltlab.wcf/templates/messageFormSmilies.tpl index b7b3d30293..f3abb1229d 100644 --- a/com.woltlab.wcf/templates/messageFormSmilies.tpl +++ b/com.woltlab.wcf/templates/messageFormSmilies.tpl @@ -3,17 +3,17 @@ {foreach from=$smileyCategories item=smileyCategory} {assign var=__tabCount value=$__tabCount + 1} {assign var='__smileyAnchor' value='smilies-'|concat:$smileyCategory->categoryID} -
  • {$smileyCategory->title|language}
  • +
  • {$smileyCategory->title|language}
  • {/foreach} {/capture} -
    +
    {capture assign=__defaultSmilies} {include file='__messageFormSmilies' smilies=$defaultSmilies} {/capture} {if $__tabCount > 1} -