From 36914a1d710d073cf0892e581d59f738973d56fe Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Thu, 26 Sep 2019 10:17:26 +0100 Subject: [PATCH] Remove the old initEvents that is no longer used --- .../src/common/services/tinymce.service.js | 58 ------------------- 1 file changed, 58 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 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