Pylons 中的 TinyMCE 拼写检查器

发布于 2024-08-15 17:51:19 字数 909 浏览 2 评论 0原文

我一直在尝试让 TinyMCE 拼写检查器与我的 Pylons 应用程序一起使用。我的第一个问题实际上是首先捕获发布数据。 Firebug 告诉我正在发送以下内容:

{"id":"c0","method":"checkWords","params":["en",["Lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit","sed","do","eiusmod","tempor","incididunt","ut","labore","et","dolore","magna","aliqua","Ut","enim","ad","minim","veniam","quis","nostrud","exercitation","ullamco","laboris","nisi","aliquip","ex","ea","commodo","consequat","Duis","aute","irure","in","reprehenderit","voluptate","velit","esse","cillum","eu","fugiat","nulla","pariatur","Excepteur","sint","occaecat","cupidatat","non","proident","sunt","culpa","qui","officia","deserunt","mollit","anim","id","est","laborum"]]}

看起来像一串 JSON。没关系,我可以处理这个问题,但它不会出现在我的 request.params 字典中的任何地方。有谁有让这个与 Pylons 一起工作的经验或者一些让我尝试的东西吗?我知道拼写检查器旨在与 PHP 后端一起使用,但这不应该造成任何重大障碍,不是吗?

此外,任何人都可以提供有关响应应该是什么样子的任何见解吗?该插件的文档似乎非常不完整。

I've been trying to get the TinyMCE spellchecker working with my Pylons app. My first problem is actually capturing the post data in the first place. Firebug tells me that the following is being sent:

{"id":"c0","method":"checkWords","params":["en",["Lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit","sed","do","eiusmod","tempor","incididunt","ut","labore","et","dolore","magna","aliqua","Ut","enim","ad","minim","veniam","quis","nostrud","exercitation","ullamco","laboris","nisi","aliquip","ex","ea","commodo","consequat","Duis","aute","irure","in","reprehenderit","voluptate","velit","esse","cillum","eu","fugiat","nulla","pariatur","Excepteur","sint","occaecat","cupidatat","non","proident","sunt","culpa","qui","officia","deserunt","mollit","anim","id","est","laborum"]]}

Which looks like a string of JSON. That's fine, I can handle that but it's not coming up in my request.params dict anywhere. Does anyone have any experience in getting this to work with Pylons or some things for me to try? I know spellchecker was intended to work with a PHP backend but that shouldn't throw up any significant barriers, should it?

Furthermore can anyone provide any insight as to what the response is supposed to look like? The documentation for this plugin seems to be woefully incomplete.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

可爱暴击 2024-08-22 17:51:19

这并不是您问题的真正答案,但我希望它会有所帮助:

您可能有兴趣查看 django-tinymce 作为灵感来源。拼写检查器基于 PyEnchant

That's not really an answer to your question but I hope it will help:

You maybe interested to look at django-tinymce as a source of inspiration. The spellchecker is based on PyEnchant

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文