我已经安装了PSpell并更新了配置文件以使用它而不是GoogleSpell。然后在我的函数文件中,我在插件部分和按钮中添加了拼写检查器。按钮出现了,但不起作用。查看源代码后,我发现TinyMCE init中没有包含拼写检查器。
function customize_tinymce($in) {
$in[\'remove_linebreaks\'] = false;
$in[\'gecko_spellcheck\'] = false;
$in[\'keep_styles\'] = true;
$in[\'accessibility_focus\'] = true;
$in[\'tabfocus_elements\'] = \'major-publishing-actions\';
$in[\'media_strict\'] = false;
$in[\'paste_remove_styles\'] = false;
$in[\'paste_remove_spans\'] = false;
$in[\'paste_strip_class_attributes\'] = \'none\';
$in[\'paste_text_use_dialog\'] = true;
$in[\'wpeditimage_disable_captions\'] = true;
$in[\'plugins\'] = \'inlinepopups,tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,wpfullscreen,spellchecker\';
$in[\'content_css\'] = get_template_directory_uri() . "/editor-style.css";
$in[\'wpautop\'] = true;
$in[\'apply_source_formatting\'] = false;
$in[\'theme_advanced_buttons1\'] = \'formatselect,|,bold,italic,underline,|,bullist,numlist,blockquote,|,link,unlink,|,pastetext,pasteword,removeformat,spellchecker,|,charmap,|,outdent,indent,|,undo,redo,|,wp_fullscreen\';
$in[\'theme_advanced_buttons2\'] = \'\';
$in[\'theme_advanced_buttons3\'] = \'\';
$in[\'theme_advanced_buttons4\'] = \'\';
return $in;
}
查看源代码时,我看到正在加载插件,但没有看到拼写检查器。
ref : {plugins:"inlinepopups,tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,wpfullscreen",theme:"advanced",language:"en"}
我错过了什么?