Source: xxe/editor/DocumentViewChangedEvent.js

export const CHANGE_INSERT_TEXT = 0;
export const CHANGE_DELETE_TEXT = 1;
export const CHANGE_REPLACE_TEXT = 2;
export const CHANGE_REPLACE_VIEW = 3;
export const CHANGE_INSERT_VIEW = 4;
export const CHANGE_REMOVE_VIEW = 5;
export const CHANGE_PATCH_TEXT = 6;
export const CHANGE_UPDATE_CUSTOM_PART = 7;

/**
 * {@link XMLEditorEvent} sent after the DOM is changed on the server side.
 */
export class DocumentViewChangedEvent extends XMLEditorEvent {
    constructor(xmlEditor, data) {
        super(xmlEditor, data, "documentViewChanged");
    }

    /**
     * Get the <code>changes</code> property of this event.
     *
     * @type {array}
     */
    get changes() {
        return this._changes;
    }
}