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 9fa4167b65..87b440cd2b 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 @@ -217,64 +217,6 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s xhr.send(formData); } - function initEvents(editor){ - - editor.on('SetContent', function (e) { - - var content = e.content; - - // Upload BLOB images (dragged/pasted ones) - if(content.indexOf(' { - var blobSrcUri = editor.dom.getAttrib(imageElement, "src"); - - // Find the same image uploaded (Should be in LocalStorage) - // May already exist in the editor as duplicate image - // OR added to the RTE, deleted & re-added again - // So lets fetch the tempurl out of localstorage for that blob URI item - var tmpLocation = localStorageService.get(`tinymce__${blobSrcUri}`) - - if(tmpLocation){ - sizeImageInEditor(editor, imageElement); - editor.dom.setAttrib(imageElement, "data-tmpimg", tmpLocation); - } - }); - - } - }); - } - function cleanupPasteData(plugin, args) { // Remove spans