Skip to content

Allow passing slate extensions to RichTextWidget #6570

Closed
@nileshgulia1

Description

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:

Activity

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions