X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fmaximize%2Fplugin.js;h=bcb726c8d5c60f2a6c868100a98cc93cb7e8124e;hp=a5a06fc1989f4b374e7904744036262758b7c429;hb=f8fc585c18d287eb325c575596d183122486b641;hpb=8665a7c6c60586526e32e8941fe2896739b6ebfb diff --git a/_source/plugins/maximize/plugin.js b/_source/plugins/maximize/plugin.js index a5a06fc..bcb726c 100644 --- a/_source/plugins/maximize/plugin.js +++ b/_source/plugins/maximize/plugin.js @@ -80,6 +80,21 @@ For licensing, see LICENSE.html or http://ckeditor.com/license function refreshCursor( editor ) { + // Refresh all editor instances on the page (#5724). + var all = CKEDITOR.instances; + for ( var i in all ) + { + var one = all[ i ]; + if ( one.mode == 'wysiwyg' ) + { + var body = one.document.getBody(); + // Refresh 'contentEditable' otherwise + // DOM lifting breaks design mode. (#5560) + body.setAttribute( 'contentEditable', false ); + body.setAttribute( 'contentEditable', true ); + } + } + if ( editor.focusManager.hasFocus ) { editor.toolbox.focus();