我试图做一个最小的TinyMCE实现。我想要的唯一按钮是粗体,斜体,字体大小,字体颜色,链接和撤消/重做。TinyMCE:如何摆脱一些按钮
我已经从他们的小提琴演示中修剪了这个例子,并且我已经能够删除许多不需要的按钮。
这是我减少了初始化,但我没有看到我可以消除什么。有没有找到一个单独的配置?有了这个,我仍然得到列表按钮,超/标和删除格式,插入特殊字符...
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"
});
下面是他们所有人的列表FlavorScape: http://www.tinymce.com/wiki.php/Buttons/controls – tcole 2012-04-10 17:52:36
感谢小子!我通常是一个原始的编码器,并且避开libs,但TinyMCE非常好! – FlavorScape 2012-04-10 17:57:21
是的,这将是一个非常恼人的轮子重新发明 – FlavorScape 2013-09-10 23:31:08