Skip to content

Limit choices in headingsPlugin() #52

Answered by petyosi
sp88011 asked this question in Q&A
Discussion options

You must be logged in to vote

That's a great practical suggestion - thank you very much.

I just published v0.17.0. Now, the headingsPlugin accepts allowedHeadingLevels configuration parameter, which lets you limit the headings allowed. This parameter affects the BlockTypeSelect component and the markdown / google docs-like keyboard shortcuts. Of course, if you allow source mode, the user will still be able to insert a non-allowed heading directly, but I assume this is not what you're after anyway.

Please let me know if the above works for you.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sp88011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants