From 0f4bbcb5c3139d39519ab516f502d02a5b287845 Mon Sep 17 00:00:00 2001 From: Rick R2H Date: Thu, 11 Apr 2024 17:44:54 +0200 Subject: [PATCH] Move parameters to Plugin tab --- .../language/en-GB/plg_editors_tinymce.ini | 3 +- plugins/editors/tinymce/forms/setoptions.xml | 29 +++++++++++++++++++ .../tinymce/src/PluginTraits/DisplayTrait.php | 2 +- plugins/editors/tinymce/tinymce.xml | 29 ------------------- 4 files changed, 31 insertions(+), 32 deletions(-) diff --git a/administrator/language/en-GB/plg_editors_tinymce.ini b/administrator/language/en-GB/plg_editors_tinymce.ini index 72c6d26469463..162458329c143 100644 --- a/administrator/language/en-GB/plg_editors_tinymce.ini +++ b/administrator/language/en-GB/plg_editors_tinymce.ini @@ -44,11 +44,10 @@ PLG_TINY_FIELD_HTMLWIDTH_LABEL="HTML Width" PLG_TINY_FIELD_LABEL_ADVANCEDPARAMS="Advanced" PLG_TINY_FIELD_LANGCODE_LABEL="Language Code" PLG_TINY_FIELD_LANGSELECT_LABEL="Automatic Language Selection" -PLG_TINY_FIELD_LINK_CLASS_LIST_DESC="The classes that may be added to the link. Separate individual classes by a space (example: btn btn-primary). Only valid class names are allowed." PLG_TINY_FIELD_LINK_CLASS_LIST_LABEL="Class List" -PLG_TINY_FIELD_LINK_CLASS_NAME_DESC="The name shown in the link class dropdown in TinyMCE." PLG_TINY_FIELD_LINK_CLASS_NAME_LABEL="Name" PLG_TINY_FIELD_LINK_CLASS_NONE="None" +PLG_TINY_FIELD_LINK_CLASSES_LIST_DESC="Add default classes to the class dropdown in the create link dialog." PLG_TINY_FIELD_LINK_CLASSES_LIST_LABEL="Link Classes List" PLG_TINY_FIELD_NEWLINES_LABEL="New Lines" PLG_TINY_FIELD_NUMBER_OF_SETS_LABEL="Number of Sets" diff --git a/plugins/editors/tinymce/forms/setoptions.xml b/plugins/editors/tinymce/forms/setoptions.xml index 8179e5772e684..864ff94fb11c3 100644 --- a/plugins/editors/tinymce/forms/setoptions.xml +++ b/plugins/editors/tinymce/forms/setoptions.xml @@ -403,5 +403,34 @@ + +
+ + + + + diff --git a/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php b/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php index 3c59a56d47b0e..387d23c56fcc5 100644 --- a/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php +++ b/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php @@ -383,7 +383,7 @@ public function display(string $name, string $content = '', array $attributes = $toolbar = array_merge($toolbar1, $toolbar2); // Load the link classes list - $linksClassesList = (array) $this->params->get('link_classes_list', []); + $linksClassesList = $extraOptions->link_classes_list; $linkClasses = []; if ($linksClassesList) { diff --git a/plugins/editors/tinymce/tinymce.xml b/plugins/editors/tinymce/tinymce.xml index f2337a25d7e02..7f199469f5b4e 100644 --- a/plugins/editors/tinymce/tinymce.xml +++ b/plugins/editors/tinymce/tinymce.xml @@ -58,35 +58,6 @@ default="" /> - -
- - - -