Ticket #4999: 4999.patch

File 4999.patch, 630 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/templates/dialogs/templates.js

     
    9191                                var range = new CKEDITOR.dom.range( editor.document );
    9292                                range.moveToElementEditStart( editor.document.getBody() );
    9393                                range.select( true );
     94                                setTimeout( function ()
     95                                {
     96                                        editor.fire( 'saveSnapshot' );
     97                                }, 0 );
    9498                        } );
     99
     100                        editor.fire( 'saveSnapshot' );
    95101                        editor.setData( html );
    96102                }
    97103                else
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy