I'd like add this to my TinyMCE 3 editors when they are embedded...

$init['gecko_spellcheck'] = 'true';

What's the best way to do this extensibly with the wysiwyg module?

Thanks,
Mike

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

What is this setting for, what defines and allows it, and where and when is it available?

mpaler’s picture

Hi Sun,

This init code enables/disables built in spell check for text-areas in gecko browsers like Firefox. (Note this isn't the TinyMCE spell checker plugin that I've found doesn't work across all browsers)

After a little bit of research (see http://drupal.org/node/135150), I discovered that for some reason, TinyMCE ships with this set to FALSE, thus disabling the built in browser spell check. It seems there may be some conflict with other plugins but I can't be sure.

Either way, I wanted it on because I run an editor with few buttons. What I did to get it going was by adding the param to wysiwyg_tinymce_settings as follows.

function wysiwyg_tinymce_settings($editor, $config, $theme) {
  $init = array(
    'button_tile_map' => TRUE, // @todo Add a setting for this.
    'document_base_url' => base_path(),
    'entity_encoding' => 'raw',
    'mode' => 'none',
    'plugins' => array(),
    'relative_urls' => FALSE,
    'theme' => $theme,
    'width' => '100%',
    'strict_loading_mode' => TRUE,
    'gecko_spellcheck' => TRUE,

  );

Appears to work ok for me, though I haven't tested across all browsers/platforms.

My question is, is there a better way to do this such that I don't have to hack the module?

Thanks,
Mike

sun’s picture

Title: How to an init['gecko_spellcheck']? » Allow to toggle gecko spell-checker
Version: 5.x-1.1 » 5.x-2.x-dev
Category: support » feature
Status: Postponed (maintainer needs more info) » Active
dragonwize’s picture

A definite needed feature. Keeping this in my tracker queue. If I get to this any time soon I will write a patch.

sun’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of #313497: Allow configuration of advanced editor settings. You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.

However, thanks for taking the time to report this issue.