The `isDirty` bit shoudn't be directly set. This is managed internally, and will be cleared when the document is saved or reverted.