From 6eb861dc61444e04200295967e77be514aa73a5f Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 22 Jan 2021 22:50:51 +0000 Subject: [PATCH] Bug 26942: Allow style and link tags in NewsEditor TinyMCE To Test: -Make sure the sys pref 'NewsToolEditor' is set to TinyMCE -Go to any news item and add this line: -Save the news item -Re-open the same news item again in TinyMCE. -The editor has removed that line. Annoying! -Apply patch -Try again, the should stay now Signed-off-by: Amit Gupta Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 27fce8b0c2575021400023d9a7460adef20dadd6) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt | 2 ++ 1 file changed, 2 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 5867075c24..9dc20cec79 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 @@ -376,6 +376,8 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %] menubar : "file edit view insert format tools table", mode : "specific_textareas", plugins : "autoresize table hr link image charmap lists code emoticons", + extended_valid_elements:"style,link[href|rel]", + custom_elements:"style,link,~link", toolbar : [ "formatselect | bold italic | cut copy paste | alignleft aligncenter alignright | outdent indent | image link unlink anchor cleanup hr", "table | bullist numlist | undo redo | removeformat | emoticons charmap | forecolor backcolor | code visualaid help" -- 2.39.5