MDL-77308 core: Remove editor_tiny from core

This commit is contained in:
Andrew Nicols
2023-03-09 15:28:35 +08:00
parent 0c0f6bffd8
commit f58a71baab
19 changed files with 53 additions and 98 deletions
+3 -2
View File
@@ -35,7 +35,7 @@ require_once('templatable_form_element.php');
/**
* Editor element
*
* It creates preffered editor (textbox/TinyMce) form element for the format (Text/HTML) selected.
* It creates preffered editor (textbox/Tiny) form element for the format (Text/HTML) selected.
*
* @package core_form
* @category form
@@ -422,7 +422,8 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element implements templatab
$fpoptions['subtitle'] = $subtitle_options;
}
//If editor is required and tinymce, then set required_tinymce option to initalize tinymce validation.
// TODO Remove this in MDL-77334 for Moodle 4.6.
// If editor is required and tinymce, then set required_tinymce option to initalize tinymce validation.
if (($editor instanceof tinymce_texteditor) && !is_null($this->getAttribute('onchange'))) {
$this->_options['required'] = true;
}