我想在tinyMCE的元素符号下拉列表中添加一些额外的选项,这可能吗?
我想添加 ► 子弹类型和不同的颜色选项。 (红色、蓝色等...)
最佳答案
是的。在你的tinyMCE配置中,你需要指定:
style_formats: [
{
title: 'Custom Bullet',
selector: 'ul',
classes: 'custom1'
}
],
从那里,您需要在 CSS 中指定样式:
.custom1 { list-style-image: url('custom1.png'); }
有关更多信息,请参阅此:https://www.tinymce.com/docs/configure/content-formatting/#style_formats
关于javascript - 如何向tinyMCE 添加自定义元素符号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21485294/