Bug
value.endInline returns undefined if its attribute isVoid: true even though there is an inline element in the document.
OS: macOS Sierra v10.12.5
Browser: Chrome 63.0.3239.132
Slate: 0.11.2
value.endInline should return the inline node just like value.endBlock is returning a block node.
This happens only when the inline is isVoid: true because of the extra 0 width block at the end that actually has the selection.
Hey, thanks for using Slate! Unfortunately, we can't offer support for usage questions in the issues here because it becomes overwhelming to maintain the project if the issues are filled with questions.
However, we do have a Slack channel and people are constantly asking and answering questions in there. So I'm going to close this issue, but I definitely recommend joining the Slack channel if you want to find people that might be able to help.
Thanks for understanding!
Most helpful comment
This happens only when the inline is
isVoid: truebecause of the extra 0 width block at the end that actually has the selection.