mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-37565 - HTMLEditor - Adding a toggle plugin to TinyMCE to improve the appearance of the editor
This commit is contained in:
parent
f8e6e5bc30
commit
3b62cd64d7
18 changed files with 367 additions and 10 deletions
|
@ -37,14 +37,14 @@ class tinymce_moodlemedia extends editor_tinymce_plugin {
|
|||
}
|
||||
}
|
||||
|
||||
// Add button after emoticon button in advancedbuttons3.
|
||||
$added = $this->add_button_after($params, 3, 'moodlemedia', 'moodleemoticon', false);
|
||||
// Add button after emoticon button in advancedbuttons1.
|
||||
$added = $this->add_button_after($params, 1, 'moodlemedia', 'moodleemoticon', false);
|
||||
|
||||
// Note: We know that the emoticon button has already been added, if it
|
||||
// exists, because I set the sort order higher for this. So, if no
|
||||
// emoticon, add after 'image'.
|
||||
if (!$added) {
|
||||
$this->add_button_after($params, 3, 'moodlemedia', 'image');
|
||||
$this->add_button_after($params, 1, 'moodlemedia', 'image');
|
||||
}
|
||||
|
||||
// Add JS file, which uses default name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue