Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: save content on object resize

thecodrr9b4f0a95f2ae
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.js
index 8c30b2882..648946c82 100644
--- a/apps/web/src/components/editor/tinymce.js
+++ b/apps/web/src/components/editor/tinymce.js
@@ -129,10 +129,11 @@ const plugins = {
* 2. compositionend - (Android only) called on change
* 3. paste - called after content is pasted
* 4. ExecCommand - called after changes such as formatting.
+ * 5. ObjectResized - called after an image/object has resized
* We do not include the "change" event here as it is only
* invoked after the editor loses focus.
*/
-const changeEvents = "input compositionend paste ExecCommand";
+const changeEvents = "input compositionend paste ExecCommand ObjectResized";
const ignoredCommand = ["mcerepaint", "mcefocus"];
function TinyMCE(props) {