MDL-34877 add tinymce subplugin setting support

Includes migration of spell related settings to spellchecker plugin.
This commit is contained in:
Petr Škoda 2012-08-18 15:21:37 +02:00
parent d71c486507
commit 116ad39b7a
11 changed files with 243 additions and 15 deletions

View file

@ -34,4 +34,13 @@ class plugininfo_tinymce extends plugininfo_base {
public function get_uninstall_url() {
return new moodle_url('/lib/editor/tinymce/subplugins.php', array('delete' => $this->name, 'sesskey' => sesskey()));
}
public function get_settings_url() {
global $CFG;
if (file_exists("$CFG->dirroot/lib/editor/tinymce/plugins/$this->name/settings.php")) {
return new moodle_url('/admin/settings.php', array('section'=>'tinymce'.$this->name.'settings'));
} else {
return null;
}
}
}