Merge pull request #6438 from umbraco/v8/bugfix/macro-still-selectable

Fixes selecting Macro Content in RTE to be non editable once node is saved
This commit is contained in:
Bjarke Berg
2019-09-26 13:04:21 +02:00
committed by GitHub

View File

@@ -803,6 +803,11 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
//show the throbber
$macroDiv.addClass("loading");
// Add the contenteditable="false" attribute
// As just the CSS class of .mceNonEditable is not working by itself?!
// TODO: At later date - use TinyMCE editor DOM manipulation as opposed to jQuery
$macroDiv.attr("contenteditable", "false");
var contentId = $routeParams.id;
//need to wrap in safe apply since this might be occuring outside of angular