Ticket #5724: 5724.patch

File 5724.patch, 957 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/maximize/plugin.js

     
    8080
    8181        function refreshCursor( editor )
    8282        {
    83                 // Refresh 'contentEditable' otherwise
    84                 // DOM lifting breaks design mode. (#5560)
    85                 var body = editor.document.getBody();
    86                 body.setAttribute( 'contentEditable', false );
    87                 body.setAttribute( 'contentEditable', true );
     83                // Refresh all editor instances on the page (#5724).
     84                var all = CKEDITOR.instances;
     85                for ( var i in all )
     86                {
     87                        var one = all[ i ];
     88                        // Refresh 'contentEditable' otherwise
     89                        // DOM lifting breaks design mode. (#5560)
     90                        var body = one.document.getBody();
     91                        body.setAttribute( 'contentEditable', false );
     92                        body.setAttribute( 'contentEditable', true );
     93                }
    8894
    8995                if ( editor.focusManager.hasFocus )
    9096                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy