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
{{ message }}
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.
At present, the react-code-mirror component only gives the new content of the document to onChange handlers (presumably for consistency with React's textarea implementation). However, CodeMirror's internal change event fires with additional, useful information:
The changeObj is a {from, to, text, removed, origin} object containing information about the changes that occurred as second argument.
It would be great if the React component also provided this information to onChange handlers.
The text was updated successfully, but these errors were encountered:
At present, the react-code-mirror component only gives the new content of the document to
onChange
handlers (presumably for consistency with React's textarea implementation). However, CodeMirror's internalchange
event fires with additional, useful information:It would be great if the React component also provided this information to
onChange
handlers.The text was updated successfully, but these errors were encountered: