mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 08:30:04 +01:00
MDL-79107 editor_tiny: Target correct element on editor removal
This commit is contained in:
parent
e6e6c7e7b3
commit
3053acf475
2
lib/editor/tiny/amd/build/editor.min.js
vendored
2
lib/editor/tiny/amd/build/editor.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -520,7 +520,7 @@ export const setupForTarget = async(target, options = {}) => {
|
||||
editor.on('remove', ({target}) => {
|
||||
// Handle removal of the editor from the map on destruction.
|
||||
instanceMap.delete(target.targetElm);
|
||||
target.dataset.fieldtype = null;
|
||||
target.targetElm.dataset.fieldtype = null;
|
||||
});
|
||||
|
||||
// If the editor is part of a form, also listen to the jQuery submit event.
|
||||
|
Loading…
x
Reference in New Issue
Block a user