From a93dc628a26f5b29e68814ef63bd33ef68134fd4 Mon Sep 17 00:00:00 2001 From: Philip Bauer Date: Wed, 13 Apr 2022 10:26:48 +0200 Subject: [PATCH] Add inline mode to tinymce config (see https://github.com/plone/Products.CMFPlone/issues/3465) --- src/plone/base/interfaces/controlpanel.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/plone/base/interfaces/controlpanel.py b/src/plone/base/interfaces/controlpanel.py index 705f11e..18d9a0a 100644 --- a/src/plone/base/interfaces/controlpanel.py +++ b/src/plone/base/interfaces/controlpanel.py @@ -355,6 +355,16 @@ class ITinyMCELayoutSchema(Interface): required=False, ) + inline = schema.Bool( + title=_("Run TinyMCE in inline mode."), + description=_("The inline editing mode is useful when creating user " + "experiences where you want the editing view of the page " + "to be merged with the reading view of the page." + ), + default=False, + required=False, + ) + # TODO: add validation to assert % and px in the value editor_width = schema.TextLine( title=_("Editor width"),