-
Improvement
-
Resolution: Fixed
-
Minor
-
2.5
-
MOODLE_25_STABLE
-
MOODLE_26_STABLE
-
wip-
MDL-40648-master -
Since in 2.6 we introduce at least another 3 plugins for tinymce (wrap, pdw and managefiles) I want to suggest 2 new functions
editor_tinymce_plugin::find_button()
editor_tinymce_plugin::count_button_rows()
and also remove function is_button_present() - it is private so nothing will be broken
With the help of those new API functions we can make sure that automatic adding of buttons by plugins is smarter and when the tinymce layout is changed by admin, the new buttons are added in the correct place.
Example: At the moment moodleemoticon adds itself after the 'image' button in the 3rd row. If layout is changed by admin and 'image' is no longer in the 3rd row, moodleemoticon adds itself in the end of the 3rd row.
After the fix: moodleemoticon finds the 'image' button and adds itself in the same row.
Also after the introduction of pdw the default buttons layout was changed and not all plugins were altered. Which leaded to strangely placed icons.
- blocks
-
MDL-40766 Smarter positioning of Tinymce managefiles button
-
- Closed
-