Merge pull request #3086 from kjac/fix-nc-dragging-discards-changes

Avoid data loss when dragging an unsaved Nested Content item
This commit is contained in:
Sebastiaan Janssen
2018-10-03 17:03:49 +02:00
committed by GitHub

View File

@@ -243,6 +243,7 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.NestedContent.Prop
cursor: "move",
handle: ".umb-nested-content__icon--move",
start: function (ev, ui) {
updateModel();
// Yea, yea, we shouldn't modify the dom, sue me
$("#umb-nested-content--" + $scope.model.id + " .umb-rte textarea").each(function () {
tinymce.execCommand('mceRemoveEditor', false, $(this).attr('id'));