You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a "bookmark" feature for my app but i'm stuck with event handling.
The feature should work this way :
-When the user type "#" in the beginning of the line it implement the useReducer state with an object (with the content of this line and the position in the editor)
-A button is created by rerendering with an action of focus on the specific line when the user click on it
-The position stored in the object should evolve as the editor is modified
-The object should be deleted if the line is deleted
I'm struggling to find an event to listen for deletion of content (in order to update the position if it's affected)
Thanks for your answer 😃
That's interesting! Is there a list of events handled by this extensions ? In the documentation I only found "blur" "focus" and "scroll"
Hi !
I'm trying to create a "bookmark" feature for my app but i'm stuck with event handling.
The feature should work this way :
-When the user type "#" in the beginning of the line it implement the useReducer state with an object (with the content of this line and the position in the editor)
-A button is created by rerendering with an action of focus on the specific line when the user click on it
-The position stored in the object should evolve as the editor is modified
-The object should be deleted if the line is deleted
I'm struggling to find an event to listen for deletion of content (in order to update the position if it's affected)
Thanks for your help 😄
The text was updated successfully, but these errors were encountered: