mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-35955 use built in spell checker if tinymce spelling plugin disabled
This commit is contained in:
parent
2105f57590
commit
83828a7725
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue