MDL-77897 editor_tiny: Save editor content on editor blur
This commit is contained in:
+1
-1
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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user