From 405727f1ac83148331e5b39046cbde2560be5010 Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 10 Mar 2014 14:36:20 +1100 Subject: [PATCH] Completes: U4-3919 Get google spellchecker working in new RTE editor in a much better way that requires no server side implementations - it enables spell checking by the browser in the RTE which is heaps better and less code for us --- .../src/views/propertyeditors/rte/rte.controller.js | 7 ++++++- 1 file changed, 6 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 642a079011..02b365bacd 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 @@ -95,6 +95,11 @@ angular.module("umbraco") //set the reference tinyMceEditor = editor; + //enable browser based spell checking + editor.on('init', function(e) { + editor.getBody().setAttribute('spellcheck', true); + }); + //We need to listen on multiple things here because of the nature of tinymce, it doesn't //fire events when you think! //The change event doesn't fire when content changes, only when cursor points are changed and undo points @@ -140,7 +145,7 @@ angular.module("umbraco") $timeout(function () { tinymce.DOM.events.domLoaded = true; tinymce.init(baseLineConfigObj); - }, 200); + }, 200, false); }