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

thesunny picture thesunny  路  38Comments

Zhouzi picture Zhouzi  路  24Comments

ianstormtaylor picture ianstormtaylor  路  18Comments

exports picture exports  路  20Comments

davolokh picture davolokh  路  100Comments