tinymce를 사용하면 BBCode 태그 만 출력 할 수 있습니까?
문제
Person이 Tinymce를 사용하여 양식을 제출 한 후 Tinymce가 HTML을 반환하지 않고 오히려 BBCode 유형 태그를 반환 할 수 있습니까? 즉 [blah] [/blah] 등?
해결책
네, 그것은이 번들 플러그인 그에 대한.
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
});
제휴하지 않습니다 StackOverflow