tsechingho / ckeditor-rails

Integrate CKEditor javascript library with Rails asset pipeline
https://github.com/tsechingho/ckeditor-rails
MIT License
213 stars 134 forks source link

Spell Checker doesn't work #14

Closed p1nox closed 11 years ago

p1nox commented 11 years ago

// 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' ] ] };

I have been testing many possible solutions, I think that it is a problem with 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

In here http://drupal.org/node/1870398 user called "vinmassaro " posted that if you set "Spell Check as You Type" on toolbar it work because the two type of spellcheck was compress in one button, but dosent work :S

luisp128 commented 11 years ago

I am having this same problem, any updates on this issue?

tsechingho commented 11 years ago

The standard version of ckeditor 4.0 does not contain scayt or any spellcheker. After 4.0.1, the standard version contain the scayt addon. That's why your spell checker cannot work. You can try to add addons of ckeditor by yourself by put them in correct place.

And the plugin SpellChecker is deprecated, use Scayt instead, you should modify your toolbar config.

BTW, the assets of gem ckeditor is maintained by galetahub.

And ckeditor_rails update to v4.0.1 today.

p1nox commented 11 years ago

Ok, wrong gem sorry...

Now I'm using your gem "ckeditor_rails", "~> 4.0.1" but when precompile the assets I'm getting this error:

rake aborted! Invalid CSS after "..._footer{filter:": expected expression (e.g. 1px, bold), was "}" (in .../.../gems/ckeditor_rails-4.0.1/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_iequirks.css) (sass):6

p1nox commented 11 years ago

The problem seems to be with empty properties on ckeditor css like {filter:;} Being more especific, error excuting rake assets:precompile on this file https://github.com/ckeditor/ckeditor-dev/blob/master/skins/moono/dialog_iequirks.css

Issue with vertion 3: https://github.com/galetahub/ckeditor/issues/43

tsechingho commented 11 years ago

thanks for bug report, I forgot to test precompile process. please use v4.0.1.1

p1nox commented 11 years ago

Thanks! Works perfectly!

Posted on stackoverflow too http://stackoverflow.com/questions/14384625/spell-checker-doesnt-work-on-ckeditor-4