Ticket #4385: 4385.patch

File 4385.patch, 931 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    134134                        selection = evt.data.selection,
    135135                        range = selection.getRanges()[0],
    136136                        body = editor.document.getBody(),
    137                         enterMode = editor.config.enterMode;
     137                        enterMode = editor.config.enterMode,
     138                        isDirtyBeforeFix = editor.checkDirty();
    138139
    139140                // When enterMode set to block, we'll establing new paragraph only if we're
    140141                // selecting inline contents right under body. (#3657)
     
    198199                                                '<br _cke_bogus="true" />' : 'br' );
    199200                        body.append( paddingBlock );
    200201                }
     202
     203                // DOM modification here should not bother dirty flag.(#4385)
     204                if( !isDirtyBeforeFix )
     205                        editor.resetDirty();
    201206        }
    202207
    203208        CKEDITOR.plugins.add( 'wysiwygarea',
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy