Arbortext Command Language > Callbacks > doc_add_callback > insert_content Callback Type
  
insert_content Callback Type
Function prototype:
function funcname (doc, startoid, startpos, endoid, endpos)
insert_content is called by the insert_string command, and the insert command and function after a string that contains markup is successfully inserted. insert_content is also called by the read command after a successful insertion.
insert_content is not called for normal typing, inserting of symbols, or inserting text with the insert command or function.
If a pending delete occurs as a result of the insertion, then the pending_delete_after callback type is called instead of insert_content.
Arguments
doc — identifier of the current document.
startoid — the object identifier representing the position of the beginning of the inserted content.
startpos — the position from startoid in characters of the start of the inserted content.
endoid — the object identifier representing the position of the end of the inserted content.
endpos — the position from endoid in characters of the end of the inserted content.