MDL-81936 editor_tiny: handle default filepicker/draftitem config.

If they aren't passed in editor options config, ensure they still
observe the registered option processor (type) for each.
This commit is contained in:
Paul Holden
2024-05-16 18:49:46 +01:00
parent bcae2164ac
commit d04044bb0a
4 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -170,7 +170,10 @@ class editor extends \texteditor {
'context' => $context->id,
// File picker options.
'filepicker' => $fpoptions,
'filepicker' => (object) $fpoptions,
// Default draft item ID.
'draftitemid' => 0,
'currentLanguage' => current_language(),