Description
Inserts a new node before or after the current one.
Available in Ted and in Fred.
Syntax
object.InsNodeAtCur bAfter |
object
Required. Object name. Returned by Ted.GetActiveArticle.
bAfter
If true the new node is inserted after the current one, if false the new node is inserted before the current one.
Remarks
It works only for nodes inside texts (ie nodes corresponding to paragraphs or tables or fragment of text with a text styles) - to insert text nodes use one of the text insertion functions (InsNewTxt, InsTxtDlg etc.).
The text must be open for edit.
The user is prompted to choose the type of the new node with a dialog that lists only the valid ones for the insertion position. If there are no valid types for that position the function fails with an error message. If there is only one valid type the user is not prompted and a node of that type is inserted directly.
Context
Article object
See also
InsChildNode, InsNewTxt, InsObj, InsObjDlg, InsTxt, InsTxtDlg.