4. Adding a division

Click the "The "Division" toolbar button Division" toolbar button to add a new div element after caret position[1].

What does “add after” exactly mean?

Adding “after” indeed means adding after, but not always immediately after. It precisely means: after current element or any of its parent elements, at first location where it is allowed to do so. This last sentence has important consequences. For example:

In XMLmind XML Editor, this “add after” concept is used exclusively in the toolbar buttons[2]. At first, you'll add elements at unexpected locations but after some time, you'll find it quite predictable and very handy to use.


[1] More precisely, the new div is added after node selection (if any) or after caret, at a document location where it is valid to do so.
[2] Generic command "Insert After Insert After" inserts a new element immediately after implicitly or explicitly selected nodes.