diff options
author | Aleksander Machniak <alec@alec.pl> | 2019-11-29 14:54:35 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2019-11-29 14:54:35 +0300 |
commit | 58aea024b4ba6a8689e2da37809cce11b0fe68d4 (patch) | |
tree | c8b69f5793c4614dc94a3fd40f1dc78c00e9e5b7 /program | |
parent | 94c795b539153b1790524241332e60cb18107754 (diff) |
Improve style tag handling in TinyMCE (#7088)
Diffstat (limited to 'program')
-rw-r--r-- | program/js/editor.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 |