From ee16a2863d98b0739f4b47c10f287845696ebe24 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Mon, 3 Aug 2020 16:53:44 +0200 Subject: [PATCH] Configured used html tags --- .../vitro/webapp/web/antisamy-vitro-1.4.4.xml | 24 ++++++++++++++----- .../edit/forms/defaultFormScripts.ftl | 4 ++-- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/api/src/main/resources/edu/cornell/mannlib/vitro/webapp/web/antisamy-vitro-1.4.4.xml b/api/src/main/resources/edu/cornell/mannlib/vitro/webapp/web/antisamy-vitro-1.4.4.xml index 7b493c1fa..546c08b37 100644 --- a/api/src/main/resources/edu/cornell/mannlib/vitro/webapp/web/antisamy-vitro-1.4.4.xml +++ b/api/src/main/resources/edu/cornell/mannlib/vitro/webapp/web/antisamy-vitro-1.4.4.xml @@ -557,12 +557,24 @@ http://www.w3.org/TR/html401/struct/global.html - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/defaultFormScripts.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/defaultFormScripts.ftl index 0405d2f58..cc11a4930 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/defaultFormScripts.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/defaultFormScripts.ftl @@ -39,7 +39,7 @@ theme_advanced_resizing : true, height : "${height}", width : "${width}", - valid_elements : "a[href|name|title],br,p,i,em,cite,strong/b,u,sub,sup,ul,ol,li", + valid_elements : "a[href|name|title],br,p[style],i,em,cite,strong/b,u,sub,sup,ul,ol,li,h1[dir|style|id],h2[dir|style|id],h3[dir|style|id],h4,h5,h6,div[style|class],span[dir|style|class]", fix_list_elements : true, fix_nesting : true, cleanup_on_startup : true, @@ -49,7 +49,7 @@ paste_use_dialog : false, paste_auto_cleanup_on_paste : true, paste_convert_headers_to_strong : true, - paste_strip_class_attributes : "all", + paste_strip_class_attributes : "mso", paste_remove_spans : true, paste_remove_styles : true, paste_retain_style_properties : ""