如何在tinymce的第一段添加html链接

时间:2012-06-25 06:42:12

标签: javascript tinymce

我想在TinyMCE的第一段添加HTML链接并禁用所有段落。我该如何解决?请帮忙。

mode : "exact",
elements:"home_textarea",
theme : "advanced",
plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",
gecko_spellcheck : true,

// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough",
theme_advanced_buttons2 : "code",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,

我想要theme_advanced_buttons2theme_advanced_buttons1的'代码'。请帮忙。

1 个答案:

答案 0 :(得分:0)

这个怎么样:

theme_advanced_buttons1 : "bold,italic,underline,strikethrough,code",
theme_advanced_buttons2 : "",