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

Disable some blocks #25

Closed
SwithFr opened this issue Nov 30, 2017 · 3 comments
Closed

Disable some blocks #25

SwithFr opened this issue Nov 30, 2017 · 3 comments

Comments

@SwithFr
Copy link

SwithFr commented Nov 30, 2017

Is it possible in the options to disable or replace some blocks ?

thks

@artf
Copy link
Member

artf commented Dec 8, 2017

Unfortunately not yet in this plugin 😬

@Keyyubi
Copy link

Keyyubi commented Feb 11, 2020

I guess you can do something like this to exclude some blocks from your editor instance after you initialize it.

excludedModules: [ "sect100", "sect50", "sect30", "sect37", "button", "divider", "text", "text-sect", "image", "quote", "grid-items", "list-items", "link-block", "link" ],

this.excludedModules.forEach(x => this.grapesEditor.BlockManager.remove(x) );

@artf
Copy link
Member

artf commented Jun 9, 2023

Closing this as there is already blocks option available

@artf artf closed this as completed Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants