Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone. I am very new to slate, but I am amazed by its capabilities.
I am currently building an interface that highlights a word when a user selects it, and when clicking on the word, it will remove the hilighting
While I've managed to do the hilighting on selection without any problems, the removing part on Click has proved more difficult.
When a user sleect a word, all ive done is simply
now, for the custom component i did something like this
It Worked smoothly.
but how can i manager to remove the mark on Click?
my
handelRemove
simply callsbut that dosent work. only if i Sellect the whole text it dose.
Any advice on how to approch this?
ive tried to make slate just select the node on click with
transform.select
but that diudnt work eitherAny help will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions