ckeditor5
ckeditor5 copied to clipboard
[Question] - How to add a bulleted list feature with specific class on it?
I want to add custom class to ul tag as it is done with h2 tag in this example from documentation (fancy class):
{
model: 'headingFancy',
view: {
name: 'h2',
classes: 'fancy'
},
title: 'Heading 2 (fancy)',
class: 'ck-heading_heading2_fancy',
// It needs to be converted before the standard 'heading2'.
converterPriority: 'high'
}
(https://ckeditor.com/docs/ckeditor5/latest/features/headings.html#configuring-custom-heading-elements)
Is that possible? Cannot find any documentation regarding that :(
Hello, unfortunately there's no configuration option like this for lists. Please, take a look at the related issue about adding custom classes to the elements - https://github.com/ckeditor/ckeditor5/issues/1462.