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

This commit is contained in:
Warren Buckley
2019-09-09 18:50:49 +01:00
parent 5e394cb62b
commit 9d8e4fd66f

View File

@@ -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();