Skip to content

Multiline custom block in react #1351

Closed
@rnovacek

Description

@rnovacek

Describe the bug

Is it possible to implement custom block in react that would handle multiline in the same way as for example Paragraph? I want to create a "Blockquote" component, that would behave the same as Paragraph, but it should show solid left border to mark quoted text.

The Shift+Enter shortcut to insert a line break doesn't work for me.

Demo: https://stackblitz.com/edit/github-v7ssmz9n?file=App.tsx

To Reproduce
Create a simple react component. Then press Shift+Enter to get a new line. Nothing will happen. I was expecting a line break.

Misc

  • Node version: v18.20.3 and v20.9.0
  • Package manager: npm
  • Browser: chrome
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions