mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-77897 editor_tiny: Save editor content on editor blur
This commit is contained in:
parent
7beda01cae
commit
489a53ceb2
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
@ -447,6 +447,11 @@ export const setupForTarget = async(target, options = {}) => {
|
||||
});
|
||||
}
|
||||
|
||||
// Save the editor content to the textarea when the editor is blurred.
|
||||
editor.on('blur', () => {
|
||||
editor.save();
|
||||
});
|
||||
|
||||
pendingPromise.resolve();
|
||||
return editor;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user