From 4918fa0868bc8fe4e4a73431ca20ee9d37650b5a Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 2 Oct 2019 12:05:11 +0200 Subject: [PATCH] added timeout --- .../src/views/propertyeditors/rte/rte.controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js index 8ca698060a..c2bf5d0336 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js @@ -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 () {