gpt4 book ai didi

asp.net - 有没有适用于 TinyMCE 的拼写检查插件

转载 作者:行者123 更新时间:2023-12-03 18:09:01 27 4
gpt4 key购买 nike

我在我的网络应用程序中使用 Google 的拼写检查器。它运行良好,但由于某种原因谷歌停止或删除了他们的服务,现在它不起作用。
这是 SOAP API 的链接 - https://developers.google.com/soap-search/?csw=1#1_3 .

我尝试使用其他一些组件,例如

  • http://www.jspell.com/tinymcespellchecker.html (它需要在服务器上进行一些安装,并且有一些与输入相关的问题 + 一些要执行的 PHP 代码)
  • http://jquery-spellchecker.badsyntax.co/tinymce.html (它需要一些 PHP 代码来执行并给出错误“该方法不允许使用“POST”)

  • 两者都没有按预期工作。

    我之前也发布过一个问题,但没有得到任何回复 Tinymce: Spellchecker is not working .

    最佳答案

    为什么不使用浏览器拼写检查?
    您不需要做太多事情就可以让它发挥作用。
    浏览器需要安装您的语言字典(AddOn),此外您还需要设置属性 spellcheck编辑器正文到 true .

    tinyMCE.init({
    ...
    setup : function(ed) {
    ed.onInit.add(function(ed, evt) { //since tinymce4 use ed.on('init', function(evt){...
    ed.getBody().setAttribute('spellcheck', true);
    });
    }
    });

    这比远程拼写检查器方法(使用 Google 拼写检查器或其他 aspell 服务器之类的东西)快得多。

    关于asp.net - 有没有适用于 TinyMCE 的拼写检查插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17898359/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com