2013-01-17 34 views
0

我使用的CKEditor v4.0與CKEditor的寶石https://github.com/tsechingho/ckeditor-rails拼寫檢查程序不會對CKEditor的工作4

的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&Topic=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」發帖說,如果你設置「拼寫檢查作爲你鍵入」工具欄,它的工作,因爲這兩個類型的拼寫檢查的一個按鈕被壓縮,但dosent工作,不甚至工具欄按鈕也顯示:S

回答

0

我不知道如何解決這個問題,但我發現另一顆寶石,可以做我想做的,如果你想要使用此功能,您可以使用它進行任何額外的配置。

gem 'ckeditor_rails', '~> 4.0.1.1' 

https://github.com/tsechingho/ckeditor-rails