From 12fd9baf3b33955ff1ad197f67d8b0cf3e982e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 20 Sep 2019 09:08:28 +0200 Subject: [PATCH] clean up init + move editor.uploadImages to service instead of specific implementation --- .../src/common/services/tinymce.service.js | 88 ++++++++++--------- .../propertyeditors/rte/rte.controller.js | 37 ++++---- 2 files changed, 66 insertions(+), 59 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 a28318519c..1b346a3bc6 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,38 +205,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('