MDL-70990 core_editor: Replace EDITOR_CONTENT_RESTORED event
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 24 Feb 2021 09:41:35 +0000 (17:41 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 26 May 2021 02:47:03 +0000 (10:47 +0800)
commita44cee78f18f7714e4467519b4f3a8224c948383
tree5df982c9a3478512310dff24ddaa23978d40785b
parenta1ccefe2ac483d2f1d5bdf1827d148ee1f998286
MDL-70990 core_editor: Replace EDITOR_CONTENT_RESTORED event

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.
lib/amd/build/event.min.js
lib/amd/build/event.min.js.map
lib/amd/src/event.js
lib/editor/amd/build/events.min.js [new file with mode: 0644]
lib/editor/amd/build/events.min.js.map [new file with mode: 0644]
lib/editor/amd/src/events.js [new file with mode: 0644]
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js
lib/editor/atto/yui/src/editor/js/autosave.js
lib/upgrade.txt