Slate: value.endInline not returning Inline node

Created on 5 Feb 2018  路  2Comments  路  Source: ianstormtaylor/slate

Do you want to request a feature or report a bug?

Bug

What's the current behavior?

value.endInline returns undefined if its attribute isVoid: true even though there is an inline element in the document.

jsfiddle example

OS: macOS Sierra v10.12.5
Browser: Chrome 63.0.3239.132
Slate: 0.11.2

What's the expected behavior?

value.endInline should return the inline node just like value.endBlock is returning a block node.

question

Most helpful comment

This happens only when the inline is isVoid: true because of the extra 0 width block at the end that actually has the selection.

All 2 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianstormtaylor picture ianstormtaylor  路  3Comments

ianstormtaylor picture ianstormtaylor  路  3Comments

vdms picture vdms  路  3Comments

yalu picture yalu  路  3Comments

markolofsen picture markolofsen  路  3Comments