From 6783707115336afd851460c43ddd388aaa9a5700 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 16 Apr 2014 15:52:08 +0200 Subject: [PATCH] Added support for attachments within the editor (e.g. quick reply) --- com.woltlab.wcf/templates/wysiwyg.tpl | 30 +++++++++++++- com.woltlab.wcf/templates/wysiwygToolbar.tpl | 4 ++ .../js/3rdParty/redactor/plugins/wupload.js | 40 +++++++++++++++++++ wcfsetup/install/files/js/WCF.Message.js | 3 +- ...ttachmentMessageQuickReplyAction.class.php | 21 ++++++++++ .../message/QuickReplyManager.class.php | 10 +++++ wcfsetup/install/files/style/message.less | 7 ++++ 7 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js create mode 100644 wcfsetup/install/files/lib/data/IAttachmentMessageQuickReplyAction.class.php diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index 384f49d3ac..889da3d328 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -1,3 +1,4 @@ +{if !$wysiwygEnableUpload|isset}{assign var=wysiwygEnableUpload value=false}{/if}