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 -3
View File
@@ -95,7 +95,7 @@ function editors_get_enabled() {
global $CFG;
if (empty($CFG->texteditors)) {
$CFG->texteditors = 'atto,tinymce,textarea';
$CFG->texteditors = 'atto,tiny,textarea';
}
$active = array();
foreach(explode(',', $CFG->texteditors) as $e) {
@@ -114,7 +114,7 @@ function editors_get_enabled() {
/**
* Returns instance of text editor
*
* @param string $editorname name of editor (textarea, tinymce, ...)
* @param string $editorname name of editor (textarea, tiny, ...)
* @return object|bool texeditor instance or false if does not exist
*/
function get_texteditor($editorname) {
@@ -153,7 +153,7 @@ function editors_head_setup() {
global $CFG;
if (empty($CFG->texteditors)) {
$CFG->texteditors = 'atto,tinymce,textarea';
$CFG->texteditors = 'atto,tiny,textarea';
}
$active = explode(',', $CFG->texteditors);