undo Callback Type
Function prototype:
function funcname (doc, detail, startoid, startpos, endoid, endpos)
undo is called after any undo or redo operation completes. The detail argument indicates the reason for the callback. The last four arguments give the range of the document affected by the undo operation.
Arguments
• doc — The identifier of the current document.
• detail — A code indicating the type of undo operation as follows:
◦ 1 — The undo command.
◦ 2 — The undo triggered by Arbortext Editor as the result of context errors.
◦ 3 — The redo command.
• startoid — The object identifier representing the beginning position of the range affected by the undo operation.
• startpos — The position from startoid (in characters) to the beginning of the range affected by the undo.
• endoid — The object identifier representing the end position of the range affected by the undo.
• endpos — The position from endoid (in characters) to the end of the range affected by the undo.