Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
6e186498
Commit
6e186498
authored
Oct 26, 2017
by
Jake Dallimore
Browse files
Merge branch 'MDL-59686-master' of
git://github.com/lameze/moodle
parents
75909e3c
3c2b703e
Changes
2
Hide whitespace changes
Inline
Side-by-side
calendar/classes/local/event/forms/create.php
View file @
6e186498
...
...
@@ -48,7 +48,8 @@ class create extends \moodleform {
'context'
=>
$context
,
'maxfiles'
=>
EDITOR_UNLIMITED_FILES
,
'maxbytes'
=>
$CFG
->
maxbytes
,
'noclean'
=>
true
'noclean'
=>
true
,
'autosave'
=>
false
];
}
...
...
lib/form/editor.php
View file @
6e186498
...
...
@@ -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'
=>
15
,
'enable_filemanagement'
=>
true
,
'removeorphaneddrafts'
=>
false
);
'return_types'
=>
15
,
'enable_filemanagement'
=>
true
,
'removeorphaneddrafts'
=>
false
,
'autosave'
=>
true
);
// 15 is $_options['return_types'] = FILE_INTERNAL | FILE_EXTERNAL | FILE_REFERENCE | FILE_CONTROLLED_LINK.
/** @var array values for editor */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment