Ticket #8392 (closed Bug: invalid)

Opened 3 years ago

Last modified 3 years ago

paste from word does not fire "isDirty"

Reported by: Jangaroo 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

comment:1 Changed 3 years ago by j.swiderski

  • Status changed from new to closed
  • Resolution set to invalid

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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy