From ec2e27dd07fb9439f358fc0033f3610551c501dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 19 Sep 2019 08:21:06 +0200 Subject: [PATCH] img configs for tiny --- .../src/common/services/tinymce.service.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 0832dc0e15..f0084e1f64 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 @@ -205,7 +205,7 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s editor.on('SetContent', function (e) { - console.log("setcontent", e) + console.log("> setcontent", e) var content = e.content; @@ -357,10 +357,13 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s }; //if (tinyMceConfig.pasteTidying) { + plugins.splice(plugins.indexOf("paste"), 1); plugins.push("umbpaste"); + console.log("plugins:", plugins) + // We keep spans here, cause removing spans here also removes b-tags inside of them, instead we strip them out later. - var validElements = "-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,ul,ol,li" + var validElements = "-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" // add valid elements from styleFormats. var style, i = 0;