Skip to content

Restrict blockstyles to specific tags #35

Description

@DrillSergeant

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions