From f94376bfc4c24714d06b39732946b8f542e3caec Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Mon, 23 Oct 2017 11:00:22 +0800 Subject: [PATCH] MDL-59686 form: fix autosave support for editor field --- lib/form/editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/form/editor.php b/lib/form/editor.php index 551e30645b5..1e8259c3cfe 100644 --- a/lib/form/editor.php +++ b/lib/form/editor.php @@ -58,7 +58,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element implements templatab /** @var array options provided to initalize filepicker */ protected $_options = array('subdirs' => 0, 'maxbytes' => 0, 'maxfiles' => 0, 'changeformat' => 0, 'areamaxbytes' => FILE_AREA_MAX_BYTES_UNLIMITED, 'context' => null, 'noclean' => 0, 'trusttext' => 0, - 'return_types' => 7, 'enable_filemanagement' => true); + 'return_types' => 7, 'enable_filemanagement' => true, 'autosave' => true); // $_options['return_types'] = FILE_INTERNAL | FILE_EXTERNAL | FILE_REFERENCE /** @var array values for editor */