JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3
[ckeditor.git] / _source / plugins / maximize / plugin.js
index a5a06fc..bcb726c 100644 (file)
@@ -80,6 +80,21 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
        function refreshCursor( editor )\r
        {\r
+               // Refresh all editor instances on the page (#5724).\r
+               var all = CKEDITOR.instances;\r
+               for ( var i in all )\r
+               {\r
+                       var one = all[ i ];\r
+                       if ( one.mode == 'wysiwyg' )\r
+                       {\r
+                               var body = one.document.getBody();\r
+                               // Refresh 'contentEditable' otherwise\r
+                               // DOM lifting breaks design mode. (#5560)\r
+                               body.setAttribute( 'contentEditable', false );\r
+                               body.setAttribute( 'contentEditable', true );\r
+                       }\r
+               }\r
+\r
                if ( editor.focusManager.hasFocus )\r
                {\r
                        editor.toolbox.focus();\r