You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.
Setting Slate's schema does not seem to validate correctly out of the box.
I think this should be the preferred way to solve this though. To extend your schema so that the type of any list under list items are normalized to bullet list
You should be able to do it without trouble through by writing a plugin with a plugin.schema.validateNode function for that.
If you would like to use the schema, then it can become quite ugly. You need to mutate the schema of your slate-edit-list plugin instance, and extend it in a way that preserve the plugin's logic, while also adding your logic.
I found no other way of communicating this, so hence the issue.
It is not clear to me if I can set what kind of nested list behavior I can have.
In my concrete example I want that all nested lists of Number list to be Bullet lists.
Setting Slate's schema does not seem to validate correctly out of the box.
The text was updated successfully, but these errors were encountered: