From 59c5f4cd7cb154b18a5f93d96b95979a56a25502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 19 Sep 2019 11:36:41 +0200 Subject: [PATCH] further comment --- .../src/common/services/tinymce.service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js index 865dccc7fa..91427b81c6 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js @@ -350,8 +350,9 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s // We keep spans here, cause removing spans here also removes b-tags inside of them, instead we strip them out later. var validPasteElements = "-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody,img[src|alt|width|height],ul,ol,li,hr,pre,dl,dt,figure,figcaption,wbr" - + // add elements from user configurated styleFormats to our list of validPasteElements. + // (This means that we only allow H3-element if its configured as a styleFormat on this specific propertyEditor.) var style, i = 0; for(; i < styles.styleFormats.length; i++) { style = styles.styleFormats[i];