TinyMCE 4.0.5 拼写检查不起作用

编程入门 行业动态 更新时间:2024-10-27 17:15:17
本文介绍了TinyMCE 4.0.5 拼写检查不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我目前正在使用带有 jQ​​uery 包的 TinyMCE 4.0.5 并注意到拼写检查不起作用

I am currently using TinyMCE 4.0.5 with jQuery package and noticed that spell check is not working

我正在使用一个简单的设置

i am using a simple set up

tinymce.init({
         selector: "textarea",
         plugins : "spellchecker",
});

通过此设置,我可以在工具"下看到拼写检查"选项,但是当我单击拼写检查"时,它会引发错误'错误:一般'

With this set up i can see the option 'SpellCheck' under 'Tools' but when i click on 'SpellCheck' it throws an error 'Error: GENERAL'

错误日志中也有错误文件不存在:PATH/tinymce/js/tinymce/plugins/spellchecker//

Also there is an error in the error log "File does not exist: PATH/tinymce/js/tinymce/plugins/spellchecker//

但是我可以在上面的路径中看到以下文件路径/tinymce/js/tinymce/plugins/spellchecker/plugin.min.js

but i can see the following file in the above path PATH/tinymce/js/tinymce/plugins/spellchecker/plugin.min.js

推荐答案

根据我在别处找到的内容,拼写检查器插件由 Google 服务提供支持 - 该服务已停用.所以目前似乎没有集成的 TinyMCE 拼写检查解决方案.

According to what I've found elsewhere, the spellchecker plugin was powered by Google service - which has been retired. So at this time there does not appear to be an integrated TinyMCE spellchecker solution.

但是,您可以通过执行以下操作来启用浏览器的内置拼写检查器:

However, you CAN enable the browser's built-in spellchecker by doing the following:

tinymce.init({
    browser_spellcheck : true,
});

请务必从工具栏和插件列表中删除拼写检查器.

Be sure to remove spellchecker from your toolbar and your plugins list.

这篇关于TinyMCE 4.0.5 拼写检查不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 09:36:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1392032.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不起作用   TinyMCE

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!