使用tinyMCE,你能得到它只输出bbcode标签吗?

时间:2009-07-18 16:31:36

标签: tinymce c#-4.0

在人们使用tinymce提交表单后,tinyMCE是否可以不返回任何HTML,而是返回bbcode类型的标签?即[blah] [/ blah]等?

1 个答案:

答案 0 :(得分:4)

是的,它有a bundled plugin

tinyMCE.init({
    theme : "advanced",
    mode : "textareas",
    plugins : "bbcode",
    theme_advanced_buttons1 : "bold,italic,undo,redo,link,unlink,image,cleanup",
    theme_advanced_buttons2 : "",
    theme_advanced_buttons3 : "",
    theme_advanced_toolbar_location : "bottom",
    theme_advanced_toolbar_align : "center",
    theme_advanced_styles : "Code=codeStyle;Quote=quoteStyle",
    content_css : "bbcode.css",
    entity_encoding : "raw",
    add_unload_trigger : false,
    remove_linebreaks : false
});