MDL-83282 core: Remove most reference to Atto

Some references can remain, and others should remain until we drop
support for YUI, or Atto is no longer supported in the plugins database.

Note: Some reference to Atto will remain until such a time as it is no
longer possible to support the editor via the plugins database.
This commit is contained in:
Andrew Nicols
2025-03-05 11:35:25 +08:00
parent e49af69a1d
commit 1aeaf278c1
19 changed files with 87 additions and 96 deletions
+5 -2
View File
@@ -41,10 +41,13 @@ class editor extends base {
global $CFG;
if (empty($CFG->texteditors)) {
return array('atto'=>'atto', 'tinymce'=>'tinymce', 'textarea'=>'textarea');
return [
'tiny' => 'tiny',
'textarea' => 'textarea',
];
}
$enabled = array();
$enabled = [];
foreach (explode(',', $CFG->texteditors) as $editor) {
$enabled[$editor] = $editor;
}