Slate: Limit decorateNode() to only the focused line?

Created on 27 Jul 2018  路  2Comments  路  Source: ianstormtaylor/slate

Any thoughts on passing the editor prop to decorateNodes for the purpose of scoping decorations to the currently selected block? I'm sure there are other use cases as well.

question

All 2 comments

Hey @Slapbox please search for the other issues that asked for value to be passed down. It's not possible as currently architected, because of memoization.

@ianstormtaylor understood. Thanks very much as always for taking the time to reply.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chriserickson picture chriserickson  路  3Comments

ianstormtaylor picture ianstormtaylor  路  3Comments

JSH3R0 picture JSH3R0  路  3Comments

adrianclay picture adrianclay  路  3Comments

vdms picture vdms  路  3Comments