Closed danburzo closed 7 years ago
I've also included a sanity check for scribe.el.lastChild
. Scribe assumes the element always has some child, but there are situations when the element gets completely empty. Pressing Enter in these situations will throw an error.
Looks good 👍
Just noticed this too. When would this be available in the release?
This pull request fixes some issues identified in #489 for inline-mode:
Pressing Enter while having a selection originally did not delete the range contents. It now does.
Pressing Enter in the middle of a word would insert two
<br>
elements between the parts. I've changed thehasContent
method such that it takes into consideration text nodes that have non-whitespace content. (created a new nodeHelpers method + related tests).I've also added a
raw-inline.html
example for fiddling with inline-mode Scribe.