Changeset 5166


Ignore:
Timestamp:
02/21/2010 12:20:59 AM (5 years ago)
Author:
fredck
Message:

#4999 : The Template dialog was not generating an undo snapshot.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r5164 r5166  
    100100                <li><a href="http://dev.fckeditor.net/ticket/5163">#5163</a> : The undo system was not working on some specific cases.</li> 
    101101                <li><a href="http://dev.fckeditor.net/ticket/5162">#5162</a> : The ajax sample was throwing errors when loading data.</li> 
     102                <li><a href="http://dev.fckeditor.net/ticket/4999">#4999</a> : The Template dialog was not generating an undo snapshot.</li> 
    102103                <li>Updated the following language files:<ul> 
    103104                        <li><a href="http://dev.fckeditor.net/ticket/5006">#5006</a> : Dutch;</li> 
  • CKEditor/trunk/_source/plugins/templates/dialogs/templates.js

    r5150 r5166  
    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                } 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy