52. insertTextOrMoveDot

Parameter syntax:

[ 'after' | 'before' ]?

When parameter after is specified or when no parameter is specified, this command is similar to "insertNode textAfter[implicitElement]".

When parameter before is specified, this command is similar to "insertNode textBefore[implicitElement]".

The only difference with command insertNode is that when a new text cannot be inserted because there is already a text node after or before selected element, the insertTextOrMoveDot moves the caret to the existing text node.