javascript - How can I add custom bullets to tinyMCE? -
i want add few option bullets dropdown on tinymce, possible?
i want add ► type of bullet , different color options. (red, blue, etc...)
yes. in tinymce config, need specify:
style_formats: [ { title: 'custom bullet', selector: 'ul', classes: 'custom1' } ],
from there, need specify styling in css:
.custom1 { list-style-image: url('custom1.png'); }
see more info: https://www.tinymce.com/docs/configure/content-formatting/#style_formats
Comments
Post a Comment