Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.9.2, 3.0
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_29_STABLE
-
MDL-51854-master -
-
Description
When drag and drop uploading support was incorporated into the atto_image plugin in MDL-43996, the return statement in the drop handler was moved outside the main if statement. This means that it now always returns false, preventing any subsequent Atto plugins from listening to the drop event to handle other file types.
For example, if you install the generic (non-image) file dragdrop plugin from https://github.com/pauln/moodle-atto_filedragdrop, it won't trigger unless you load it before atto_image (i.e. "filedragdrop" comes before "image" in your Atto toolbar configuration.