mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-34877 add tinymce subplugin setting support
Includes migration of spell related settings to spellchecker plugin.
This commit is contained in:
parent
d71c486507
commit
116ad39b7a
11 changed files with 243 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue