我正在尝试在 TinyMCE 4.0 中使用 Spellchecker,但它返回错误:
Non JSON response:<br />
<b>Warning</b>: call_user_func_array() [<a href='function.call-user-func-array'>function.call-user-func-array</a>]: First argument is expected to be a valid callback, 'PSpellShell::spellcheck' was given in <b>/home/www/misitio.com/doc/plugins/tinymce/plugins/spellchecker/rpc.php</b> on line <b>98</b><br />
{"id":null,"result":null,"error":null}
我使用的代码是:
//Javascript:
tinymce.init({
selector: "textarea",
theme: "modern",
language : 'es',
menubar : false,
height: 400,
autoresize_min_height: 400,
plugins: [
"advlist autolink lists link image charmap hr",
"searchreplace wordcount visualchars fullscreen",
"insertdatetime table contextmenu directionality",
"template textcolor autoresize spellchecker"
],
toolbar: "undo redo | styleselect | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | forecolor backcolor | subscript superscript | removeformat blockquote | charmap inserttime | link image | table hr | searchreplace | fullscreen spellchecker",
image_advtab: true,
spellchecker_languages : "+English=en",
spellchecker_rpc_url: 'plugins/tinymce/plugins/spellchecker/rpc.php'
});
使用插件 PHP Spellchecker 2.0.6.1 ( http://www.tinymce.com/develop/changelog/?type=phpspell )
我认为你可以解决谷歌尝试https://github.com/tinymce/tinymce_spellchecker_php的连接问题,只是看不到如何集成它,有没有人能够在 TinyMCE 4.0 中使用拼写检查器?或者他们知道将 Spellchecker 集成到 TinyMCE 4.0 的任何教程吗?
嗯,谢谢!: D