ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.65k stars 3.71k forks source link

ListProperties - Customise the styles that are visible to the user #17508

Open Arniox opened 1 week ago

Arniox commented 1 week ago

📝 I would like to customize exactly which styles are visible to the user, and maybe even add custom ones.

Under list.properties.styles, we should be able to set this as a boolean | string[]

list: {
    properties: {
        styles: false,
        startIndex: true,
        reversed: true
    },
},

I specifically do not want my users to be able to change the bulletedList styles. But I want to allow them to access the numberedList styles. Or at least, some of them. I want to be able to do this:

list: {
    properties: {
        styles: {
            bulleted: ['disc'],
            numbered: [
                'decimal',
                'lower-roman',
                'lower-alpha',
            ]
        },
        startIndex: true,
        reversed: true
    },
},

If you'd like to see this feature implemented, add a 👍 reaction to this post.