Changes between Version 2 and Version 7 of Ticket #11909
- Timestamp:
- Jun 12, 2014, 2:10:28 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11909
-
Property
Milestone
changed from
toCKEditor 4.4.2
-
Property
Milestone
changed from
-
Ticket #11909 – Description
v2 v7 10 10 var editor = CKEDITOR.replace( 'editor1', {}); 11 11 editor.on('instanceReady', function(){ 12 console.log('Before setData:'+editor.checkDirty());13 editor.setData('',function(){14 console.log('Inside setData before reset:'+editor.checkDirty());15 editor.resetDirty();16 console.log('Inside setData after reset:'+editor.checkDirty());17 });18 19 });12 console.log('Before setData:'+editor.checkDirty()); 13 editor.setData('',function(){ 14 console.log('Inside setData before reset:'+editor.checkDirty()); 15 editor.resetDirty(); 16 console.log('Inside setData after reset:'+editor.checkDirty()); 17 }); 18 19 }); 20 20 }}} 21 21 … … 23 23 var editor = CKEDITOR.replace( 'editor1', {}); 24 24 editor.on('instanceReady', function(){ 25 editor.setData('');26 });27 editor.on('afterSetData', function(){28 console.log('After setData before reset:'+editor.checkDirty());29 editor.resetDirty();30 console.log('After setData after reset:'+editor.checkDirty());31 },null,null,100);25 editor.setData(''); 26 }); 27 editor.on('afterSetData', function(){ 28 console.log('After setData before reset:'+editor.checkDirty()); 29 editor.resetDirty(); 30 console.log('After setData after reset:'+editor.checkDirty()); 31 },null,null,100); 32 32 }}} 33
