在没有 PHP/.NET 的 TinyMCE 中进行拼写检查?
我们希望使用 TinyMCE 拼写检查功能,但无需安装 PHP 或 .NET。
有人成功做到这一点吗?
我们目前使用 Windows Server 2008、IIS 7 和 Perl。
We would like to use the TinyMCE spellcheck function but without having to install PHP or .NET.
Has anyone successfully done this?
We are currently using Windows Server 2008, IIS 7 and Perl.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要在 Web 服务器上编写一些处理程序,该处理程序需要与 PHP 脚本所需的参数相同的参数。您使用什么语言并不重要。您需要进行一些逆向工程,并且可能需要更改 Javascript 中的 URL 以指向您的新处理程序。
You'll need to write some handler on your web server that expects the same parameters that the PHP script expects. What language you use for that doesn't matter. You'll need to do a little bit of reverse engineering and maybe change the URL in the Javascript to point to your new handler.
您可以将 gecko_spellcheck: true 作为选项传递给tinymce.init(),这将允许浏览器进行拼写检查。
它不适用于 Internet Explorer,这是有道理的,因为 Internet Explorer 没有嵌入拼写检查功能。
You can pass gecko_spellcheck: true as an option to tinymce.init(), which will allow the browser to do the spellcheck.
It doesn't work with Internet Explorer, which makes sense since Internet Explorer doesn't have spell check embedded.