Hi,
We have implemented the javascript API : editor.IsDirty() today .
And will publish it soon.
Regards,
Terry