From 9d8e4fd66f8ac7a759bbdfeae9a0fe12e686e85a Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Mon, 9 Sep 2019 18:50:49 +0100 Subject: [PATCH] Fixes the issue with the image being stored as a base64 inline image, which can be HUGE & make POST request slow to save the content node --- .../src/common/services/tinymce.service.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 07aa4d57b7..24139da62d 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 @@ -189,7 +189,10 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s // Put temp location into localstorage (used to update the img with data-tmpimg later on) localStorage.setItem(`tinymce__${blobInfo.blobUri()}`, json.tmpLocation); - success(); + // We set the img src url to be the same as we started + // The Blob URI is stored in TinyMce's cache + // so the img still shows in the editor + success(blobInfo.blobUri()); }; formData = new FormData();