This is a MadLib.

Today I went to the __. I saw a(n) __ __ jumping up and down in its tree.

A simple sample MadLib

Editing MadLibs has a couple of issues.

The first is an odd behavior that's happening when the last leading text character is removed from head of the MadLib with an empty selection.

<__span> __spamming is fun!

Delete the leading < with an empty selection.

The second is that once a "blank" is at the start of the sentence, it is impossible to insert text before it.

__span> __spamming is fun!

Try adding the missing <.


An example of the problem with a vanilla contentEditable.

<__span> Also, here's more text.

And another paragraph.


Trivial contentEditable example.

[x] Delete the leading square bracket.

And another paragraph.