Ticket #3437: 3437.patch

File 3437.patch, 582 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/showblocks/plugin.js

     
    128128                                if ( this._.showBlocks )
    129129                                        command.exec();
    130130                        } );
     131                       
     132                        // Preserve show block state when switching cross modes.
     133                        editor.on( 'mode', function(){
     134                                if( editor.mode === 'wysiwyg' )
     135                                        command.setState( this._.showBlocks ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
     136                        } );
    131137                }
    132138        });
    133139} )();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy