Ticket #3250: 3250.patch

File 3250.patch, 2.2 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/colorbutton/plugin.js

     
    9191
    9292                                                var style = new CKEDITOR.style( config['colorButton_' + type + 'Style'], { color : color || '#000' } );
    9393
     94                                                editor.fire( 'saveSnapshot' );
    9495                                                if ( color )
    9596                                                        style.apply( editor.document );
    9697                                                else
  • _source/plugins/font/plugin.js

     
    5555                                onClick : function( value )
    5656                                {
    5757                                        editor.focus();
     58                                        editor.fire( 'saveSnapshot' );
    5859
    5960                                        if ( saveRanges )
    6061                                        {
  • _source/plugins/format/plugin.js

     
    5353                                onClick : function( value )
    5454                                {
    5555                                        editor.focus();
     56                                        editor.fire( 'saveSnapshot' );
    5657
    5758                                        if ( saveRanges )
    5859                                        {
  • _source/plugins/stylescombo/plugin.js

     
    9393                                        onClick : function( value )
    9494                                        {
    9595                                                editor.focus();
     96                                                editor.fire( 'saveSnapshot' );
    9697
    9798                                                var style = styles[ value ],
    9899                                                        selection = editor.getSelection();
  • _source/plugins/undo/plugin.js

     
    6363                        editor.on( 'beforeCommandExec', recordCommand );
    6464                        editor.on( 'afterCommandExec', recordCommand );
    6565
     66                        // Save snapshots before doing custom changes.
     67                        editor.on( 'saveSnapshot', function()
     68                                {
     69                                        undoManager.save();
     70                                });
     71
    6672                        // Make the undo manager available only in wysiwyg mode.
    6773                        editor.on( 'mode', function()
    6874                                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy