From 7cf2b3cec0d6223d2a695a8d30937244f441007c Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Tue, 21 Mar 2017 10:45:15 +0100 Subject: [PATCH] TINYMCE.md: Notes to TinyMCE. Manual.rst: Added 'howto remove <p> in TinyMCE' --- doc/TINYMCE.md | 6 ++++++ extension/Documentation/Manual.rst | 14 ++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 doc/TINYMCE.md diff --git a/doc/TINYMCE.md b/doc/TINYMCE.md new file mode 100644 index 000000000..d47a924f0 --- /dev/null +++ b/doc/TINYMCE.md @@ -0,0 +1,6 @@ +Notes +===== + +* Surround <p> Tag - https://www.tinymce.com/docs/configure/content-filtering/#forced_root_block >> + In QFQ Formeditor on the specific FormElement.parameter: `editor-forced_root_block=false` + \ No newline at end of file diff --git a/extension/Documentation/Manual.rst b/extension/Documentation/Manual.rst index 87881c3d2..fa67ab660 100644 --- a/extension/Documentation/Manual.rst +++ b/extension/Documentation/Manual.rst @@ -1592,8 +1592,12 @@ Type: editor * TinyMCE (https://www.tinymce.com, community edition) is used as the QFQ Rich Text Editor. * The content will be saved as HTML inside the database. * All configuration and plugins will be configured via the 'parameter' field. Just prepend the word 'editor-' in front - of each TinyMCE keyword. Check possible options under https://www.tinymce.com/docs/configure/, - https://www.tinymce.com/docs/plugins/, https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols + of each TinyMCE keyword. Check possible options under: + + * https://www.tinymce.com/docs/configure/, + * https://www.tinymce.com/docs/plugins/, + * https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols + * Bars: * Top: *menubar* - by default hidden. @@ -1607,6 +1611,12 @@ Type: editor editor-toolbar=code searchreplace undo redo | styleselect link table | fontselect fontsizeselect | bullist numlist outdent indent | forecolor backcolor bold italic editor-menubar=false editor-statusbar=false +* To deactivate the surrouding `<p>` tag, configure in *FormElement.parameter*:: + + editor-forced_root_block=false + + This might have impacts on the editor. See https://www.tinymce.com/docs/configure/content-filtering/#forced_root_block + * *FormElement.size*: * <min_height>,<max_height>: in pixels, including top and bottom bars. E.g.: 300,600 -- GitLab