Skip to content
This repository was archived by the owner on Jul 25, 2018. It is now read-only.
This repository was archived by the owner on Jul 25, 2018. It is now read-only.

Return change object with onChange #10

@jrunning

Description

@jrunning

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions