我有一个现有的 tinymce 设置运行良好,使用 tinymce 版本 3.4.9 但由于某种原因拼写检查器没有显示,事实上,当我将拼写检查器添加到插件列表时,tinymce 一起消失。
下面是cffunction代码...
<cffunction name="adminEditTinyMCEJS" output="true">
<cfif listLen(tinyMCE_list) gt 0>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "exact",
elements : "#tinyMCE_list#",
content_css : "css/tinyMCE.css",
plugins : "style,table,searchreplace,paste,spellchecker",
visual : "true",
external_image_list_url : "js/tinyMCE_image_list.js",
trim_span_elements : "false",
valid_elements : "+a[id|style|rel|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|class|]" +
",-strong/-b[class|style],-em/-i[class|style]," +
"-strike[class|style],-u[class|style],##p[id|style|dir|class|align],-ol[class|style],-ul[class|style],-li[class|style],br," +
"img[id|dir|lang|longdesc|usemap|style|class|src|onmouseover|onmouseout|border|alt=|title|hspace|vspace|width|height|align]," +
"-sub[style|class],-sup[style|class],-blockquote[dir|style],-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|style|dir|id|lang|bgcolor|background|bordercolor]," +
"-tr[id|lang|dir|class|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor],tbody[id|class]," +
"thead[id|class],tfoot[id|class],-td[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor|scope]," +
"-th[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|scope],caption[id|lang|dir|class|style],-div[id|dir|class|align|style]," +
"-span[style|class|align],-pre[class|align|style],address[class|align|style],-h1[id|style|dir|class|align],-h2[id|style|dir|class|align]," +
"-h3[id|style|dir|class|align],-h4[id|style|dir|class|align],-h5[id|style|dir|class|align],-h6[id|style|dir|class|align],hr[class|style]," +
"-font[face|size|style|id|class|dir|color],dd[id|class|title|style|dir|lang],dl[id|class|title|style|dir|lang],dt[id|class|title|style|dir|lang]",
theme : "advanced",
force_p_newlines : true,
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_resize_horizontal : false,
theme_advanced_resizing : false,
nonbreaking_force_tab : true,
apply_source_formatting : true,
theme_advanced_buttons1 : "bold,italic,underline,separator,spellchecker",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
spellchecker_rpc_url : "tinymce/jscripts/tiny_mce/plugins/spellchecker/rpc.cfm"
});
</script>
</cfif>
我已经实现了 Richard Davies 的插件拼写检查器(用于 ColdFusion) - 版本:2.0.4。但这没有任何效果。在这里下载
任何帮助都会非常感激。