context_changed Callback Type
Function prototype:
function funcname (doc, oid, pos)
context_changed is called when the caret has moved within the specified document to cause a change in context. This action can not be cancelled by this callback.
Arguments
• doc is the document containing the active cursor.
• oid is the OID containing the active cursor.
• pos is the number of characters into the OID where the cursor is located.
The location within the document specified by
oid and
pos must be a valid insertion position. If the cursor is currently inside generated text, this callback will be called with a position that is valid for element insertion. You can call the
in_context_list function to find out which elements are valid at a particular position.