diff --git a/administrator/language/en-GB/plg_editors_tinymce.ini b/administrator/language/en-GB/plg_editors_tinymce.ini index 6c2df01727fa8..ee02bd148c403 100644 --- a/administrator/language/en-GB/plg_editors_tinymce.ini +++ b/administrator/language/en-GB/plg_editors_tinymce.ini @@ -46,6 +46,7 @@ PLG_TINY_FIELD_LANGCODE_LABEL="Language Code" PLG_TINY_FIELD_LANGSELECT_LABEL="Automatic Language Selection" PLG_TINY_FIELD_NEWLINES_LABEL="New Lines" PLG_TINY_FIELD_NUMBER_OF_SETS_LABEL="Number of Sets" +PLG_TINY_FIELD_PASTE_AS_TEXT_LABEL="Paste As Text" PLG_TINY_FIELD_PATH_LABEL="Element Path" PLG_TINY_FIELD_PROHIBITED_LABEL="Prohibited Elements" PLG_TINY_FIELD_RESIZE_HORIZONTAL_LABEL="Horizontal Resizing" diff --git a/plugins/editors/tinymce/forms/setoptions.xml b/plugins/editors/tinymce/forms/setoptions.xml index 57d6adc6ec7aa..bca6945dbd42a 100644 --- a/plugins/editors/tinymce/forms/setoptions.xml +++ b/plugins/editors/tinymce/forms/setoptions.xml @@ -294,6 +294,17 @@ + + + + + * @license GNU General Public License version 2 or later; see LICENSE.txt */ + namespace Joomla\Plugin\Editors\TinyMCE\PluginTraits; \defined('_JEXEC') or die(); @@ -27,11 +28,11 @@ */ trait DisplayTrait { - use GlobalFilters; - use KnownButtons; - use ResolveFiles; - use ToolbarPresets; - use XTDButtons; + use GlobalFilters; + use KnownButtons; + use ResolveFiles; + use ToolbarPresets; + use XTDButtons; /** * Display the editor area. @@ -454,8 +455,9 @@ public function onDisplay( // Cleanup/Output 'browser_spellcheck' => true, - 'entity_encoding' => $levelParams->get('entity_encoding', 'raw'), - 'verify_html' => !$ignore_filter, + 'entity_encoding' => $levelParams->get('entity_encoding', 'raw'), + 'verify_html' => !$ignore_filter, + 'paste_as_text' => (bool) $levelParams->get('paste_as_text', false), 'valid_elements' => $valid_elements, 'extended_valid_elements' => implode(',', $elements), diff --git a/plugins/editors/tinymce/tinymce.php b/plugins/editors/tinymce/tinymce.php index 16736972a1df4..cd0d61d810594 100644 --- a/plugins/editors/tinymce/tinymce.php +++ b/plugins/editors/tinymce/tinymce.php @@ -20,6 +20,7 @@ class PlgEditorTinymce extends CMSPlugin { use DisplayTrait; + /** * Base path for editor files *