2. add
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 2. add

Parameter syntax:

    'before'|'after' [ implicit_selection ]? S [ argument_node ]?

Adds argument node before or after selected node. If the grammar forbids to do so, tries the same operation with the parent of selected node. If the grammar forbids to do so, tries the same operation with the grand-parent of selected node and so on.

Examples:

    add after[implicitElement] para
    add before #template(figure,image)

See also addBlockInFlow.

Prev | Up | Next
1. alert | Home | 3. addAttribute