Javascript 微小剥离跨距
TinyMCE正在使用以下配置剥离跨距:Javascript 微小剥离跨距,javascript,tinymce,Javascript,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",
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”按钮创建有问题的跨距,看起来像这样foo
任何想法都很好。我制作了一把小提琴来演示这个问题——它就在那里。
我稍微调整了一下有效的元素。现在可以了。查看tinymce小提琴:+1您使用的是tinymce的哪个版本?@Thariama我使用的是3.5.4.1版-我更新到了最新版本,以查看它是否是我以前使用的版本中的一个bug添加
[数据mce类型]
似乎没有修复它。。。尽管它确实让我走上了正确的道路。似乎TinyMCE的某些部分没有上传,因为我重新上传了所有内容,现在它只能使用-span
。我在@
中添加了data mce-type
,尽管我看不出有任何理由不将其包含在它认为应该包含它的所有元素中。data-mce-type在tinymce的never版本中不应该是必需的。编辑器为书签使用一些不可见的跨距,这些书签具有该属性