diff --git a/calendar/tests/behat/calendar.feature b/calendar/tests/behat/calendar.feature index 8f2c46fe50c..85c69ab6ada 100644 --- a/calendar/tests/behat/calendar.feature +++ b/calendar/tests/behat/calendar.feature @@ -391,7 +391,7 @@ Feature: Perform basic calendar functionality And I click on "type change test event" "link" Then I should see "Course event" # Reset to user event - And I click on "Edit" "button" + And I click on "Edit" "button" in the "type change test event" "dialogue" And I set the following fields to these values: | Event title | type change test event | | Type of event | User | @@ -414,7 +414,7 @@ Feature: Perform basic calendar functionality And I click on "type change test event" "link" And I should see "Group event" # Reset to user event - And I click on "Edit" "button" + And I click on "Edit" "button" in the "type change test event" "dialogue" And I set the following fields to these values: | Event title | type change test event | | Type of event | User | @@ -422,7 +422,7 @@ Feature: Perform basic calendar functionality And I click on "type change test event" "link" And I should see "User event" # Now test changing from user to course event. - And I click on "Edit" "button" + And I click on "Edit" "button" in the "type change test event" "dialogue" And I set the following fields to these values: | Event title | Course 1 event | | Type of event | Course | @@ -432,7 +432,7 @@ Feature: Perform basic calendar functionality And I click on "Course 1 event" "link" And I should see "Course event" # Reset to user event - And I click on "Edit" "button" + And I click on "Edit" "button" in the "Course 1 event" "dialogue" And I set the following fields to these values: | Event title | type change test event | | Type of event | User | @@ -440,7 +440,7 @@ Feature: Perform basic calendar functionality And I click on "type change test event" "link" And I should see "User event" # Now test changing from user to category event. - And I click on "Edit" "button" + And I click on "Edit" "button" in the "type change test event" "dialogue" And I set the following fields to these values: | Event title | type change test event | | Type of event | Category | diff --git a/lib/db/install.php b/lib/db/install.php index 153d3b0b199..a6841848db2 100644 --- a/lib/db/install.php +++ b/lib/db/install.php @@ -129,7 +129,7 @@ function xmldb_main_install() { 'sessiontimeout' => 8 * 60 * 60, // Must be present during roles installation. 'stringfilters' => '', // These two are managed in a strange way by the filters. 'filterall' => 0, // setting page, so have to be initialised here. - 'texteditors' => 'atto,tinymce,textarea', + 'texteditors' => 'tiny,atto,tinymce,textarea', 'antiviruses' => '', 'media_plugins_sortorder' => 'videojs,youtube', 'upgrade_extracreditweightsstepignored' => 1, // New installs should not run this upgrade step. diff --git a/lib/editor/atto/db/install.php b/lib/editor/atto/db/install.php deleted file mode 100644 index ad890400d96..00000000000 --- a/lib/editor/atto/db/install.php +++ /dev/null @@ -1,50 +0,0 @@ -. - -/** - * Atto upgrade script. - * - * @package editor_atto - * @copyright 2014 Damyon Wiese - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -defined('MOODLE_INTERNAL') || die(); - -/** - * Make the Atto the default editor for upgrades from 26. - * - * @return bool - */ -function xmldb_editor_atto_install() { - global $CFG; - - // Make Atto the default. - $currenteditors = $CFG->texteditors; - $neweditors = array(); - - $list = explode(',', $currenteditors); - array_push($neweditors, 'atto'); - foreach ($list as $editor) { - if ($editor != 'atto') { - array_push($neweditors, $editor); - } - } - - set_config('texteditors', implode(',', $neweditors)); - - return true; -} diff --git a/lib/editor/tiny/db/install.php b/lib/editor/tiny/db/install.php index fe0fb6ca9a6..7e348774278 100644 --- a/lib/editor/tiny/db/install.php +++ b/lib/editor/tiny/db/install.php @@ -23,9 +23,9 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - /** - * Post installation procedure for the TinyMCE editor. - */ +/** + * Enable the TinyMCE Editor on its install. + */ function xmldb_editor_tiny_install(): void { $editormanager = \core_plugin_manager::resolve_plugininfo_class('editor'); $editormanager::enable_plugin('tiny', true); diff --git a/mod/data/field/textarea/field.class.php b/mod/data/field/textarea/field.class.php index 1413fe48662..0857e2427db 100644 --- a/mod/data/field/textarea/field.class.php +++ b/mod/data/field/textarea/field.class.php @@ -185,6 +185,7 @@ class data_field_textarea extends data_field_base { $str .= ''; $str .= '