MDL-35955 use built in spell checker if tinymce spelling plugin disabled

This commit is contained in:
Petr Škoda 2012-10-10 13:41:36 +02:00
parent 2105f57590
commit 83828a7725
2 changed files with 4 additions and 0 deletions

View file

@ -35,6 +35,9 @@ class tinymce_spellchecker extends editor_tinymce_plugin {
// Check at least one language is supported.
$spelllanguagelist = $this->get_config('spelllanguagelist', '');
if ($spelllanguagelist !== '') {
// Prevent the built-in spell checker in Firefox, Safari and other sane browsers.
unset($params['gecko_spellcheck']);
// Add button after code button in advancedbuttons3.
$added = $this->add_button_after($params, 3, 'spellchecker', 'code', false);