Skip to content
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

Multiline custom block in react #1351

Open
1 task
rnovacek opened this issue Jan 3, 2025 · 0 comments
Open
1 task

Multiline custom block in react #1351

rnovacek opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@rnovacek
Copy link

rnovacek commented Jan 3, 2025

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 💖
@rnovacek rnovacek added the bug Something isn't working label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant