TinyMCE에 다음 구성을 사용하여 스팬을 제거한다 걸쳐 : 해당TinyMCE에 스트리핑이
tinyMCE.init({
mode : "specific_textareas",
theme_advanced_resizing_min_width : 550,
editor_selector : /(tiny_mce|image_mce)/,
theme : "advanced",
editor_deselector : "mceNoEditor",
body_class : "cms",
content_css : "/css/content.css",
plugins : "safari, inlinepopups, paste, table",
file_browser_callback : "tinyBrowser",
width : 640,
height : 500,
paste_auto_cleanup_on_paste : true,
theme_advanced_buttons1 : "bold, italic, underline, justifyleft,justifycenter, justifyright, justifyfull , formatselect, |, pasteword ,pastetext, code ",
theme_advanced_buttons2 : "undo,redo,|,bullist, numlist,| , outdent,indent, |, link, unlink, image, forecolor",
theme_advanced_buttons3 : "tablecontrols",
theme_advanced_resizing : true,
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "center",
theme_advanced_statusbar_location : "bottom",
theme_advanced_blockformats : "p,h2,h4",
convert_urls : false,
verify_html : true,
valid_elements : "@[class|style|title],br,h2,h3,h4,-p[align],-strong/b,a[name|href|target]," +
"img[src|border=0|alt|width|height|align],hr[width|size|noshade],-em/i,-span" +
"table[border|cellspacing|cellpadding|width],tr[rowspan],td[colspan],th[colspan],-ul,-ol,-li"
});
스팬은 '데 ForeColor'버튼이 생성 <span style="color: rgb(0, 255, 0); ">foo</span>
처럼된다.
모든 아이디어가 우수 할 것입니다.
+1 어떤 tinymce 버전을 사용하고 계십니까? – Thariama
@Thariama 버전 3.5.4.1을 사용 중입니다. 이전 버전에서 사용하고 있던 버그인지 확인하기 위해 최신 버전으로 업데이트했습니다. – ianbarker