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

Allow passing slate extensions to RichTextWidget #6570

Open
nileshgulia1 opened this issue Jan 8, 2025 · 0 comments · May be fixed by #6586
Open

Allow passing slate extensions to RichTextWidget #6570

nileshgulia1 opened this issue Jan 8, 2025 · 0 comments · May be fixed by #6586
Assignees

Comments

@nileshgulia1
Copy link
Member

nileshgulia1 commented Jan 8, 2025

Describe the bug
The text block configuration in the core can be extended using textBlockExtensions. However, we don't apply this to the RichtextWidget because, in the past, we faced issues with how it handled unordered lists (ul) and list items (li).

To Reproduce
Steps to reproduce the behavior:

  1. Try adding a richText widget on a field and add a ul with some li's.
  2. It seems you can't go out of lists, also on shift+Enter.

Expected behavior
The behaviour should be same as textlock where shift+Enter should go on a newline \n, Enter on empty li should come out of list.

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Volto Version - 18.x also on 17.x

TextBlock:

const { textblockExtensions } = slate;

RichTextWidget:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant