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

Support for excluding any block #691

Open
i-am-chitti opened this issue Apr 6, 2024 · 1 comment
Open

Support for excluding any block #691

i-am-chitti opened this issue Apr 6, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@i-am-chitti
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently, defaultBlockSpecs has heading, paragraph, bulletListItem, numberedListItem, image and table. So, when a editor is rendered, one can choose any of these blocks. But it would be great to provide ability to exclude some of the default blocks. For example, exclude the image block. A user should not be able to use an image block.

Describe the solution you'd like
Haven't thought. Let's discuss and deduce a solution.

Describe alternatives you've considered
Tried the schema with excluded image block in defaultBlockSpecs but it didn't work.

Additional context
None

@i-am-chitti i-am-chitti added the enhancement New feature or request label Apr 6, 2024
@YousefED
Copy link
Collaborator

YousefED commented Apr 8, 2024

I thought your listed alternative should work. We'll check this out and add a related example.

Related: #401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants