From: Alexander Ebert Date: Fri, 21 Jul 2017 08:36:21 +0000 (+0200) Subject: Added option to force plain text pasting X-Git-Tag: 3.1.0_Alpha_1~232 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=20f61b7583e0ce8abce413cc44c35213c3141d9a;p=GitHub%2FWoltLab%2FWCF.git Added option to force plain text pasting Closes #2343 --- 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 +