diff -r 384f4539b76a -r 5c3af4f10e92 client/src/components/NoteInput.js --- a/client/src/components/NoteInput.js Wed Sep 05 13:48:10 2018 +0200 +++ b/client/src/components/NoteInput.js Tue Sep 25 02:02:13 2018 +0200 @@ -14,7 +14,7 @@ onEditorChange = (e) => { this.setState({ - buttonDisabled: e.state.document.length === 0, + buttonDisabled: e.value.document === 0, startedAt: e.startedAt, finishedAt: e.finishedAt }); @@ -26,7 +26,7 @@ const raw = this.refs.editor.asRaw(); const html = this.refs.editor.asHtml(); const categories = this.refs.editor.asCategories(); - const marginComment = this.marginComment.value; + // const marginComment = this.marginComment.value; this.props.addNote(this.props.session, { plain: plain, @@ -35,7 +35,7 @@ startedAt: this.state.startedAt, finishedAt: now(), categories: categories, - marginComment: marginComment, + // marginComment: marginComment, }); this.refs.editor.clear(); @@ -54,8 +54,8 @@ render() { return (
-
-
+
+
+
-
- + { this.marginComment = ref; } } ref={(marginComment) => { this.marginComment = marginComment; }} /> -
+
*/}
);