further comment

This commit is contained in:
Niels Lyngsø
2019-09-19 11:36:41 +02:00
parent a3de75f4c0
commit 59c5f4cd7c

View File

@@ -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];