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

Allow to specify which list style types are shown in list type selector dropdown. #17734

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Mati365
Copy link
Member

@Mati365 Mati365 commented Jan 10, 2025

Suggested merge commit message (convention)

Feature (list): Allow to specify which list style types are shown in list type selector dropdown. Closes #17176


Additional information

I added listTypesStyles to list config property, so it's now possible to limit which list types styles are available in lit dropdown.

Example:

// ... editor config
list: {
  properties: {
    styles: {
      listTypesStyles: {
        numbered: [
          'decimal',
          'decimal-leading-zero',
          'lower-roman',
          'upper-roman'
        ],
        bulleted: [
          'disc',
          'circle',
          'square'
        ]
      }
    }
  }
}

Which renders to:

obraz

Where this one is default behavior:

obraz

@Mati365 Mati365 marked this pull request as ready for review January 10, 2025 10:22
@Mati365 Mati365 requested review from niegowski and arkflpc January 10, 2025 10:38
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

Successfully merging this pull request may close these issues.

Ability to define available list styles via config
1 participant