ruby on rails 3 -拼写检查器不能在CKEditor 4上工作

ruby on rails 3 - Spell Checker doesn't work on CKEditor 4

本文关键字:不能 CKEditor 工作 检查 rails on ruby      更新时间:2023-09-26

我使用CKEditor v4.0和CKEditor gem https://github.com/tsechingho/ckeditor-rails

Gemfile

gem 'ckeditor', '>= 4.0.0.rc1'

config.js

CKEDITOR.editorConfig = function( config ){
   config.skin = 'moono',
   config.disableNativeSpellChecker = true,
   config.scayt_autoStartup = true,
   config.toolbar = [ 
      [ 'Bold', 'Italic', 'Underline', 'Strike', 'Blockquote', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink', '-', 'SpellChecker', 'Scayt' ]
   ]
};

我已经测试了许多可能的解决方案,我认为这是v4.0的问题

https://www.outsystems.com/NetworkForums/ViewTopic.aspx?TopicId=7033&主题= CKEditor——Spell-Check-As-You-Type (-SCAYT)

http://devnet.kentico.com/FAQs/Content-Management/Enable-the-Spell-Check-As-You-Type-feature-by-defa.aspx

在这里http://drupal.org/node/1870398用户名为"vinmassaro"张贴,如果你设置"拼写检查为你输入"工具栏上的工作,因为两种类型的拼写检查压缩在一个按钮,但不工作,甚至不工具栏按钮显示:S

我不知道如何解决这个问题,但我发现了另一个宝石,可以做我想要的,如果你想使用这个功能,你可以使用它没有任何额外的配置。

gem 'ckeditor_rails', '~> 4.0.1.1'
https://github.com/tsechingho/ckeditor-rails