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

Restrict blockstyles to specific tags #35

Open
DrillSergeant opened this issue Jul 13, 2022 · 1 comment
Open

Restrict blockstyles to specific tags #35

DrillSergeant opened this issue Jul 13, 2022 · 1 comment

Comments

@DrillSergeant
Copy link

Current situation
We have defined a blockstyle "lead" which should be available for paragraphs (p-tags). This blockstyle can be selected for paragraphs but also for h2 elements inside the RTE.

Favored behaviour
Would be nice if I could restrict the blockstyle to paragraph-tags, so the user cannot select that blockstyle for h2-tags and if he switches an paragaph from a p.lead to a h2 the blockstyle would automatically be removed.

Is that possible somehow?

Currently we just ignore the lead-class for anything else that paragraph-tags, but I would prefer if they would not be even selectable for them.

@anianweber
Copy link
Member

anianweber commented Jul 13, 2022

Unfortunately, this isn't possible at the moment. The workaround you provided is the way I would take in this case.

But we would appreciate your PR to implement this feature!

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

2 participants