--- 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);
}