Opened 13 years ago

Closed 13 years ago

#8392 closed Bug (invalid)

paste from word does not fire "isDirty"

Reported by: Frank Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.5.2
Keywords: Cc:

Description

After pasting text via the pastefromword dialog no "isDirty" event is fired. We use this to trigger a "Save" action. So this is a problem for us, when the event doesn't come.

Change History (1)

comment:1 Changed 13 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

There is no isDirty event.

If you are looking for changes made by dialog commands you might want to try the below code:

var e = CKEDITOR.replace( 'editor1', {} );
	e.on( 'saveSnapshot', function(event) { 
		if (e.checkDirty()){
			//do stuff here
			e.resetDirty();
		}
	}
);

Also, some time ago our colleague has written an onchange plugin for CKFinder: http://alfonsoml.blogspot.com/2011/03/onchange-event-for-ckeditor.html

You could either use it or adjust code from it to your needs

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy