[英]How can I add custom bullets to tinyMCE?
I want to add a few extra option to the bullets dropdown on tinyMCE, is that possible? 我想在tinyMCE的子弹下拉列表中添加一些额外的选项,这可能吗?
I want to add ► type of bullet and different color options. 我想添加►类型的子弹和不同的颜色选项。 (red, blue, etc...)
(红色,蓝色等......)
Yes. 是。 In your tinyMCE config, you need to specify:
在您的tinyMCE配置中,您需要指定:
style_formats: [
{
title: 'Custom Bullet',
selector: 'ul',
classes: 'custom1'
}
],
From there, you need to specify the styling in the CSS: 从那里,您需要在CSS中指定样式:
.custom1 { list-style-image: url('custom1.png'); }
See this for more info: https://www.tinymce.com/docs/configure/content-formatting/#style_formats 有关详细信息,请参阅此处: https : //www.tinymce.com/docs/configure/content-formatting/#style_formats
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.