Tried editing /sites/all/libraries/ckeditor/config.js and added "config.disableNativeSpellChecker = false;", but it doesn't seem to work (at least with Chrome 15).

Maybe it's related to http://drupal.org/node/313497...?

Thanks in advance.

CommentFileSizeAuthor
#4 browser_spellcheck.zip874 bytesemmonsaz

Comments

twod’s picture

Status: Active » Closed (duplicate)

Wysiwyg doesn't load CKEditor's default config.js because it doesn't need it.
You can create a small Drupal module and implement hook_wysiwyg_editor_settings_alter() to override that setting without having to modify Wysiwyg or CKEditor.
See #977390-2: CKEDITOR: Firefox's built-in spelling checker is disabled for what goes into your MODULENAME.module.

loyukfai’s picture

Thanks, it seemed daunting at first, but turned out to be pretty simple...

What I did...

  1. Created a new directory under modules, named "wysiwig_CUSTOM".
  2. Created a file named wysiwyg_CUSTOM.info with the content below.
  3. name = Wysiwyg_CUSTOM
    description = Enable the built-in spellchecker provided by the browser
    package = User interface
    core = 6.x
    dependencies[] = wysiwyg
  4. Created another file named wysiwyg_CUSTOM.module with the content below.
  5. <?php
    /**
    * Implementation of hook_wysiwyg_editor_settings_alter().
    */
    function wysiwyg_CUSTOM_wysiwyg_editor_settings_alter(&$settings, $context) {
      if($context['profile']->editor == 'ckeditor') {
        $settings['disableNativeSpellChecker'] = FALSE;
      }
    }
    ?>
  6. Go to the administrative interface, enable the module.

Done.

References: http://drupal.org/node/627180#comment-3507448 and http://drupal.org/node/977390#comment-3737422

twod’s picture

Perfect, except for not following the recommendation to only use lowercase characters in module names, but it's your module... ;)

emmonsaz’s picture

Issue summary: View changes
StatusFileSize
new874 bytes

4 years later and we still need a module for this?! Sigh...

introfini’s picture

Thanks Ben! It works perfectly :-)