mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
a44cee78f1
The legacy M.core.event.EDITOR_CONTENT_RESTORED event has been replaced with a new core_editor/events::editorContentRestored native DOM event. The new event can be listened to at any point in the DOM using the following syntax: ``` import {eventTypes} from 'core_editor/events'; document.addEventListener(eventTypes.editorContentRestored, handler); ``` A backward-compatabibility layer is included to ensure that any legacy jQuery event is still called with the same arguments. This legacy bridge will be removed after Moodle 4.3.