Merge pull request #6496 from umbraco/v8/bugfix/0000-TinyMCE-init-fix

Fix initialization problem with TinyMCE 4
This commit is contained in:
Warren Buckley
2019-10-01 11:19:32 +01:00
committed by GitHub

View File

@@ -89,7 +89,10 @@ angular.module("umbraco")
angular.extend(baseLineConfigObj, standardConfig);
tinymce.init(baseLineConfigObj);
// We need to wait for DOM to have rendered before we can find the element by ID.
$timeout(function () {
tinymce.init(baseLineConfigObj);
}, 150);
//listen for formSubmitting event (the result is callback used to remove the event subscription)
var unsubscribe = $scope.$on("formSubmitting", function () {