From 0d06d789f7fa6dfaee7b208d2775a3f51e60477d Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 26 Mar 2020 22:46:26 +0000 Subject: [PATCH] Bug 24764: TinyMCE shouldnt do automatic code cleanup when editing HTML in News Feature TEST PLAN: 1. Make a new news item and use the TinyMCE editor, click on the <> icon to go to the Source code editor 2. Add some HTML like and save it. 3. Go back in and notice that TinyMCE has changed it to:

TEST

4. It should not auto clean up and also it should not autowrap with

tag. 5. Apply patch patch, and repeat step 2. Save again. 6. It should not have automatiicly changed any HTML or added any

wrapper. Signed-off-by: David Cook Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit 0b7d3b4331c69238ae04fdb895baeae9ce0742cf) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt index 3d590e24ce..9fdbd1293e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt @@ -242,6 +242,11 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %] theme : "advanced", convert_urls : false, relative_urls : false, + verify_html: false, + force_br_newlines : false, + force_p_newlines : false, + forced_root_block : '', + branding : false, content_css : "[% interface | html %]/[% theme | html %]/css/tinymce.css", plugins : "table,save,advhr,advlink,searchreplace,print,contextmenu", theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,search,replace,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,|,print", -- 2.39.5