Ticket #5724: 5724_2.patch

File 5724_2.patch, 1010 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                        if ( one.mode == 'wysiwyg' )
     89                        {
     90                                var body = one.document.getBody();
     91                                // Refresh 'contentEditable' otherwise
     92                                // DOM lifting breaks design mode. (#5560)
     93                                body.setAttribute( 'contentEditable', false );
     94                                body.setAttribute( 'contentEditable', true );
     95                        }
     96                }
    8897
    8998                if ( editor.focusManager.hasFocus )
    9099                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy