Programmer's Guide > Programming and Scripting Techniques > Events > Event Types > AEditEvent Module
  
AEditEvent Module
The AEditEvent extension to the Event interface includes the following event types:
AOMCut
The AOMCut event occurs before a cut operation is executed. If an event listener doesn't cancel the cut, proper mutation events will be fired after the cut has taken place.
Bubbles: Yes
Cancelable: Yes
Context Info: relatedRange holds the range that is going to be removed from the document.
AOMCopy
The AOMCopy event occurs before the copy operation is executed.
Bubbles: Yes
Cancelable: Yes
Context Info: relatedRange holds the range that is going to be copied.
AOMDeleteRegion
The AOMDeleteRegion is called before an attempt to delete a contiguous region of a document in an edit window. AOMDeleteRegion parallels the delete_region ACL callback type, and is dispatched immediately before that callback is invoked. Refer to the delete_region documentation for details on when and how this event is fired.
Bubbles: Yes
Cancelable: Based on the method by which the content was removed: true in cases where detail does not contain 0x08, and false if detail does contain 0x08. Refer to the description of delete_region for additional details. Calling preventDefault if the event is not cancelable will have no effect.
Context Info: relatedRange holds the range containing the content about to be deleted. The detail field holds a value identical to the flags parameter to the delete_region callback.
AOMPaste
The AOMPaste event occurs after the paste operation has been executed. Proper mutation events are fired together with the paste event.
Bubbles: Yes
Cancelable: No
Context Info: relatedRange holds the range that is newly inserted into the document by the paste operation. detail indicates the source of the paste content: 1 for Arbortext Editor, 2 for clipboard.
AOMUndo
The AOMUndo event occurs after the undo operation executes. Currently, no mutation events are fired for the undo.
Bubbles: Yes
Cancelable: No
Context Info: relatedRange holds the range that is affected by the undo operation. detail indicates the source of the undo: 1 for the undo command, 2 for the undo triggered by Arbortext Editor as the result of context errors, 3 for the redo command.