Changes between Version 2 and Version 7 of Ticket #11909


Ignore:
Timestamp:
Jun 12, 2014, 2:10:28 PM (10 years ago)
Author:
Marek Lewandowski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11909

    • Property Milestone changed from to CKEditor 4.4.2
  • Ticket #11909 – Description

    v2 v7  
    1010var editor = CKEDITOR.replace( 'editor1', {});
    1111editor.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});
    2020}}}
    2121
     
    2323var editor = CKEDITOR.replace( 'editor1', {}); 
    2424editor.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});
     27editor.on('afterSetData', function(){
     28console.log('After setData before reset:'+editor.checkDirty());
     29        editor.resetDirty();
     30        console.log('After setData after reset:'+editor.checkDirty());
     31},null,null,100);
    3232}}}
    33 
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy