我正在尝试对 TinyMCE 进行最小化实现。我想要的唯一按钮是粗体、斜体、字体大小、字体颜色、链接和撤消/重做。
我已经从他们的小提琴演示中修剪了这个例子,并且我已经能够删除许多不需要的按钮。
这就是我将 init 简化为的内容,但我看不出还有什么可以消除的。我找不到单独的配置吗?有了这个,我仍然得到列表按钮、超级/下标和删除格式并插入特殊字符......
tinyMCE.init({
// General options
mode: "textareas",
theme: "advanced",
plugins: "", //note, i've removed every plugin for demnstration, stll have unwanted buttons
// Theme options
theme_advanced_buttons1: "|,bold,italic,|,fontsizeselect,|,forecolor,",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: true,
theme_advanced_text_colors : "FF00FF,FFFF00,000000",
width: "100%",
height: "400"
});