|
If callback is already on the callback list for the document, the list is shuffled to place the callback into the desired position; the callback is not added to the list a second time.
|
|
Arbortext Editor supports a single callback of each type per document. For example:
$retval = doc_add_callback(current_doc(), 'insert_entity', 'ietest')
function ietest (doc, entity, op) { response("doc = " . doc . "; entity = " . entity . "; op = " . op) } |