From 396e47808dd1da1bd2b86b00a384097da96bbe5e Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Wed, 17 Dec 2025 10:23:39 +0100 Subject: [PATCH 1/2] add new "license_key" field for TinyMCE --- news/+tinymce-license_key.feature.md | 1 + src/plone/base/interfaces/controlpanel.py | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 news/+tinymce-license_key.feature.md diff --git a/news/+tinymce-license_key.feature.md b/news/+tinymce-license_key.feature.md new file mode 100644 index 0000000..87d1f25 --- /dev/null +++ b/news/+tinymce-license_key.feature.md @@ -0,0 +1 @@ +Add "license key" field to TinyMCE schema. @petschki diff --git a/src/plone/base/interfaces/controlpanel.py b/src/plone/base/interfaces/controlpanel.py index a4dfa32..70771c3 100644 --- a/src/plone/base/interfaces/controlpanel.py +++ b/src/plone/base/interfaces/controlpanel.py @@ -752,6 +752,17 @@ class ITinyMCEResourceTypesSchema(Interface): class ITinyMCEAdvancedSchema(Interface): """This interface defines the resource types properties.""" + license_key = schema.TextLine( + title=_("label_tinymce_license_key", "Licence key"), + description=_( + "hint_tinymce_license_key", + "Enter your TinyMCE commerical licence key. NOTE: if you are using the " + "GPL version, leave this empty. If you have a commercial licence, " + "make sure you configure your licensekeymanager plugin in the 'Custom plugins'.", + ), + required=False, + ) + other_settings = schema.Text( title=_("label_tinymce_other_settings", "Other settings"), description=_( From a989f154c531dc230da81ad8aaa02940bb8d0a85 Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Wed, 17 Dec 2025 10:28:28 +0100 Subject: [PATCH 2/2] fix typo --- src/plone/base/interfaces/controlpanel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plone/base/interfaces/controlpanel.py b/src/plone/base/interfaces/controlpanel.py index 70771c3..6be6bbb 100644 --- a/src/plone/base/interfaces/controlpanel.py +++ b/src/plone/base/interfaces/controlpanel.py @@ -756,7 +756,7 @@ class ITinyMCEAdvancedSchema(Interface): title=_("label_tinymce_license_key", "Licence key"), description=_( "hint_tinymce_license_key", - "Enter your TinyMCE commerical licence key. NOTE: if you are using the " + "Enter your TinyMCE commercial licence key. NOTE: if you are using the " "GPL version, leave this empty. If you have a commercial licence, " "make sure you configure your licensekeymanager plugin in the 'Custom plugins'.", ),