-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onDeletion event ? #625
Comments
@Jules-Pinsard Maybe this plugin can solve your problem https://uiwjs.github.io/react-codemirror/#/extensions/events const extension = events.content({
input: (evn) => {
console.log('input');
}
});
<CodeMirror value="console.log('hello world!');" height="200px" extensions={[extension]} /> |
Thanks for your answer 😃 |
@Jules-Pinsard This is a dom event, which supports a lot of event bindings. Welcome to help update the documentation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: