Skip to content

Pressing enter at the end of a line within a code block throws an error #104

@thibaudcolas

Description

@thibaudcolas

See behavior below:

code-block-insertion

I imagine this may be because of the code block having a wrapper: https://github.com/springload/draftail/blob/81de01963c8e0799fc74e30a9ad79272ead05b56/lib/api/behavior.js#L37-L41

This might not be compatible with how draftjs-utils handles newlines: https://github.com/jpuri/draftjs-utils/blob/0ca605084a64a0fddb62d680918aad4bea1400a2/js/keyPress.js#L63

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions