I would like to know how to add numbered and unnumbered list styles in the format combo. Add these two formats to the combo and when selecting them, put the paragraph as a numbered list or as an unnumbered list depending on the one selected.
I get the two styles in the combo but it does not apply the format correctly. In plugins.js
I have the following:
config.format_ListaNumerada = {
name : 'Lista Numerada',
element : 'ol',
attributes : {
'class' : 'ListaNumerada'
}
}
config.format_ListaSinNumerar = {
name : 'Lista Sin Numerar',
element : 'ul',
attributes : {
'class' : 'ListaSinNumerar'
}
}
and the styles classes in the corresponding css are these:
.ListaNumerada {
list-style-type: decimal;
}
.ListaSinNumerar {
list-style-type: disc;
}
Could someone tell me why you are not applying the styles well when selecting the format and how can I solve it?