client/src/components/NoteInput.js
changeset 15 4a8bbd314a46
parent 12 48ddaa42b810
child 16 e67cd18cc594
--- a/client/src/components/NoteInput.js	Thu Jun 01 15:20:31 2017 +0200
+++ b/client/src/components/NoteInput.js	Thu Jun 01 16:15:08 2017 +0200
@@ -17,8 +17,14 @@
   }
 
   onAddNoteClick = () => {
-    const text = this.refs.editor.asPlain();
-    this.props.addNote(this.props.session, text);
+    const plain = this.refs.editor.asPlain();
+    const raw = this.refs.editor.asRaw();
+
+    this.props.addNote(this.props.session, {
+      plain: plain,
+      raw: raw
+    });
+
     this.refs.editor.clear();
     setTimeout(() => this.refs.editor.focus(), 250);
   }