Current plan for a clean API around inserting inline and block elements and text.
Deprecate insert and alias it to insertInline.
Basically the same as the current insert function with a few exceptions.
(This is @samuelcole’s insert_next, effectively)
Used to insert block-level elements after the currently-selected block-level element.
Used to insert a block-level element and split the current block-level element on the selection boundary.
Inserting <p>inserted</p> with | representing current cursor.
Middle of Node
<p>before| after</p>
<p>before</p><p>inserted</p><p>| after</p>
Start of Node
<p>|before after</p>
<p>|before after</p><p>inserted</p>
End of Node
<p>before after|</p>
<p>before after|</p><p>inserted</p>