-
Bug
-
Resolution: Not a bug
-
Minor
-
None
-
3.0.2
-
None
-
MOODLE_30_STABLE
I discovered this while developing a custom text editor plugin that has javascript implemented via AMD modules - https://moodle.org/plugins/editor_marklar
Any time the editor is used, the following debugging message is displayed:
Too many params passed to js_call_amd("editor_marklar/editor", "init")
|
|
line 1017 of /lib/outputrequirementslib.php: call to debugging()
|
line 91 of /lib/editor/marklar/lib.php: call to page_requirements_manager->js_call_amd()
|
line 388 of /lib/form/editor.php: call to marklar_texteditor->use_editor()
|
...
|
However, this is not a problem in the editor or something that editor has under control. It is actually the existing Moodle core code that produces that huge file picker options and passes it to the editor. See $fpoptions at https://github.com/moodle/moodle/blob/master/lib/form/editor.php#L391
The editor is supposed to have these options available in the javascript. When trying to do it, I get the mentioned warning: https://github.com/mudrd8mz/moodle-editor_marklar/blob/master/lib.php#L88
So the problem here is that the form element "editor" generates too big file picker options.