Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
as you can read here http://tinymce.moxiecode.com/tinymce/docs/plugin_spellchecker.html
spellchecker needs an addition to tinyMCE.init
to check the spelling of another language than english
my hack for this looks like this:
if (is_dir($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/plugins/spellchecker/')) {
$init['spellchecker_languages'] = '+Deutsch=de,Englisch=en';
}
this was added to tinymce_config()
it would be nice if someone could sit down and write a patch which adds this functionality to tinymce.module...
Helpful drupal-functions: _locale_get_iso639_list() and/or _locale_prepare_iso_list()
Thanks...
Comment | File | Size | Author |
---|---|---|---|
#1 | tinymce__spellchecker_languages.patch.txt | 2.65 KB | phuc77 |
Comments
Comment #1
phuc77 CreditAttribution: phuc77 commentedHi,
I've written a patch that let's you set the languages for spellchecker during creation of a tinymce profile.
Test it out and see if it suits your needs.
Best regards,
Phuc
Comment #2
Mupsi