Is there a way to disable the sorting of element attributes so that checkDirty() will work correctly when allowedContent is set to true?
Example of the sorting of attrib
This is what I ended up using based on Reinmar's suggestions.
jsfiddle
var isdirty = function(ckeditor) { return ckeditor.initialdata !== ckeditor.getData(); }; CKEDITOR.on('instanceReady', function (event) { event.editor.initialdata = event.editor.getData(); });