Merge pull request #4770 from umbraco/temp8-4652-tinymce-inserting-image

change insertContent to selection.setContent
This commit is contained in:
Shannon Deminick
2019-03-05 16:12:05 +11:00
committed by GitHub

View File

@@ -427,8 +427,8 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
data["rel"] = img.id;
data["data-id"] = img.id;
}
editor.insertContent(editor.dom.createHTML('img', data));
editor.selection.setContent(editor.dom.createHTML('img', data));
$timeout(function () {
var imgElm = editor.dom.get('__mcenew');