The google spellchecker addon button produces an error when suggesting words to replace a mispelled word. The error is as follows:

Could not execute AJAX call, server didn't return valid a XML

This error can be recreated by installing the google spellchecker as per tinymce-1.x-dev instructions.
creating a post insuring to incorrectly spell a word. Clikc the google spellcheck button, which marks the word with a red underline. right click the red underlined word and the error comes up in a JS popup box. I don't have access to FireFox at moment so I don't know if its a cross browser error. Right now I can confirm it happening on IE7.

Comments

herb’s picture

FWIW, I'm getting the same error in Firefox and IE7 but I don't even get the red underline before getting the JS popup box.

Marandb’s picture

I too am having this same problem (no red underline either).

Any ideas / suggestions?

Thank you,
-- Marandb

johnalbin’s picture

Component: Miscellaneous » Code
Status: Active » Postponed (maintainer needs more info)

I'm able to run spell check, view suggested words, and replace misspellings with a selected suggestion with the latest version of all software. Specifically:

  • TinyMCE module 5.x-1.x-dev from March 30, patched with compressor_2.patch from “Patch to get compressor working
  • TinyMCE 2.1.0
  • TinyMCE Compressor PHP 1.1.0
  • TinyMCE Spellchecker PHP 1.0.3.1

Can you try the latest versions and see if you still experience the issue?

johnalbin’s picture

Please also specify what browser and version you are using. (e.g. Firefox 2.0.1 or IE 7 or Safari 2.0.4)

kscheirer’s picture

I was able to get the spellchecker working, but it did take a little work. The docs that come with 5.x-1.9 are very out of date when it comes to spellchecker. Here are the steps I followed:

  1. installed tinyMCE 5.x-1.9 module
  2. downloaded spellchecker plugin (tinymce_spellchecker_php_2_0_2.zip) from http://tinymce.moxiecode.com/download.php
  3. moved the downloaded plugin to tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker, overwriting the version that comes with the drupal module
  4. override the tinymce_theme function in template.php to add the button to the advanced theme. This adds the spellchecker button as the last one one the third row, the rest are the regular third row buttons for the advanced theme. example_tinymce_theme():
    ...
      if (isset($init)) {
        switch ($theme_name) {
         case 'advanced':
           $init['plugins'] = array('spellchecker');
           $init['theme_advanced_buttons3'] .= 'hr,removeformat,visualaid,|,sub,sup,|,charmap,spellchecker';
           break;
        }
      }
    ...
    

What didn't work:

just checking the spellchecker button at admin/settings/tinymce/example_profile. By using this, you're creating a 'custom' theme, and you stop using the 'advanced' theme, so you lose all the advanced buttons. You can additionally check all the advanced buttons, but you still won't get the same layout you had before, and will need to use a theme override like above to lay all the buttons out properly.

kenorb’s picture

Category: bug » feature
Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.