From e1dfd55185395d2b4abd8da10abb6990ebc9d378 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 29 Nov 2019 12:54:35 +0100 Subject: [PATCH] Improve style tag handling in TinyMCE (#7088) --- program/js/editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/program/js/editor.js b/program/js/editor.js index 947210c26..125808e44 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -48,7 +48,8 @@ function rcube_text_editor(config, id) toolbar_items_size: 'small', extended_valid_elements: 'font[face|size|color|style],span[id|class|align|style]', fontsize_formats: '8pt 9pt 10pt 11pt 12pt 14pt 18pt 24pt 36pt', - valid_children: '+body[style],+blockquote[style]', + // Allow style tag, have to be allowed inside body/div/blockquote (#7088) + valid_children: '+body[style],+blockquote[style],+div[style]', relative_urls: false, remove_script_host: false, convert_urls: false, // #1486944