From 20f61b7583e0ce8abce413cc44c35213c3141d9a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 21 Jul 2017 10:36:21 +0200 Subject: [PATCH] Added option to force plain text pasting Closes #2343 --- com.woltlab.wcf/templates/wysiwyg.tpl | 1 + com.woltlab.wcf/userOption.xml | 6 ++++++ wcfsetup/install/files/acp/templates/wysiwyg.tpl | 6 ++++++ wcfsetup/install/lang/de.xml | 2 ++ wcfsetup/install/lang/en.xml | 2 ++ 5 files changed, 17 insertions(+) diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index 7c5e77fa05..df8b7eac98 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -182,6 +182,7 @@ linkSize: 0xBADC0DED, // some random value to disable truncating minHeight: 200, pasteImages: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('img')}true{else}false{/if}, + pastePlainText: {if !$__wcf->user->userID || $__wcf->user->editorPastePreserveFormatting}true{else}false{/if}, plugins: [ // Imperavi 'alignment', diff --git a/com.woltlab.wcf/userOption.xml b/com.woltlab.wcf/userOption.xml index 3c1d26973e..163f34219a 100644 --- a/com.woltlab.wcf/userOption.xml +++ b/com.woltlab.wcf/userOption.xml @@ -197,6 +197,12 @@ 1 module_user_signature +