Ticket #7921: 7921.patch

File 7921.patch, 558 bytes (added by Jakub Ś, 13 years ago)
  • plugin.js

     
    168168                        var currentMode = this.getMode();
    169169                        data = currentMode.getData();
    170170                        currentMode.unload( holderElement );
    171                         this.mode = '';
     171                       
    172172                }
    173173
    174174                holderElement.setHtml( '' );
     
    188188                }
    189189
    190190                modeEditor.load( holderElement, ( typeof data ) != 'string'  ? this.getData() : data);
     191                this.mode = (this.mode == 'wysiwyg') ? 'source' : 'wysiwyg';           
    191192        };
    192193
    193194        /**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy