mirror of
https://github.com/moodle/moodle.git
synced 2025-02-26 04:52:33 +01:00
The deprecation layer was introduced with MDL-70990. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
12 lines
905 B
JavaScript
12 lines
905 B
JavaScript
define("core_editor/events",["exports","core/event_dispatcher"],(function(_exports,_event_dispatcher){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.notifyEditorContentRestored=_exports.eventTypes=void 0;
|
|
/**
|
|
* Javascript events for the `core_editor` subsystem.
|
|
*
|
|
* @module core_editor/events
|
|
* @copyright 2021 Andrew Nicols <andrew@nicols.co.uk>
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
* @since 4.0
|
|
*/
|
|
const eventTypes={editorContentRestored:"core_editor/contentRestored"};_exports.eventTypes=eventTypes;_exports.notifyEditorContentRestored=editor=>(editor||window.console.warn("The HTMLElement representing the editor that was modified should be provided to notifyEditorContentRestored."),(0,_event_dispatcher.dispatchEvent)(eventTypes.editorContentRestored,{},editor||document))}));
|
|
|
|
//# sourceMappingURL=events.min.js.map
|