Avoid data loss when dragging an unsaved Nested Content item (#3014)

This commit is contained in:
Kenn Jacobsen
2018-09-29 07:35:16 +02:00
parent 25aa74b4cd
commit a7573ce31f

View File

@@ -231,6 +231,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'));