new DirtyStatusChangedEvent(isDirty)
This event should be triggered when the dirty status of the editor changes.
Example of listening for this event:
editor.listen(sync.api.Editor.EventTypes.DIRTY_STATUS_CHANGED, function(e) { // e is of type sync.api.Editor.DirtyStatusChangedEvent });
Parameters:
Name | Type | Description |
---|---|---|
isDirty |
boolean | If the editor has unsaved changes, isDirty should be true. |
Members
-
isDirty :boolean
-
true if the document became dirty,
Type:
- boolean
-
type :string
-
The type of the event: sync.api.Editor.EventTypes.DIRTY_STATUS_CHANGED.
Type:
- string