Skip to content
Snippets Groups Projects
Commit a970c71f authored by florian's avatar florian
Browse files

DRAFT: Add debug output and todo

parent 23102304
Branches
Tags
2 merge requests!68DOC: update CHANGELOG,!62FIX: Save WYSIWYG saving in source mode
Pipeline #17449 passed
......@@ -63,8 +63,11 @@ var ext_editmode_wysiwyg_text = function ($, logger, ClassicEditor, edit_mode, g
// Manually implement saving the data since edit mode is not
// a form to be submitted.
editor.model.document.on("change:data", (e) => {
console.log("Saving editor...");
editor.updateSourceElement();
});
// TODO(fspreck): Add an event listener to save also changes made in
// source mode. What event can we listen to?
} catch (error) {
logger.error(error.stack);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment