Skip to content

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

fix: send delta obj instead of Delta class

thecodrr13e33fb244b2
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 45a9f2450..1ce56f45f 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -148,7 +148,7 @@ function Editor() {
onChange={editor => {
setSession(state => {
state.session.content = {
- delta: editor.getContents(),
+ delta: { ops: editor.getContents().ops },
text: editor.getText()
};
});