equal
deleted
inserted
replaced
23 } |
23 } |
24 |
24 |
25 onAddNoteClick = () => { |
25 onAddNoteClick = () => { |
26 const plain = this.refs.editor.asPlain(); |
26 const plain = this.refs.editor.asPlain(); |
27 const raw = this.refs.editor.asRaw(); |
27 const raw = this.refs.editor.asRaw(); |
|
28 const html = this.refs.editor.asHtml(); |
28 |
29 |
29 this.props.addNote(this.props.session, { |
30 this.props.addNote(this.props.session, { |
30 plain: plain, |
31 plain: plain, |
31 raw: raw, |
32 raw: raw, |
|
33 html: html, |
|
34 |
32 startedAt: this.state.startedAt, |
35 startedAt: this.state.startedAt, |
33 finishedAt: moment().format('H:mm:ss') |
36 finishedAt: moment().format('H:mm:ss') |
34 }); |
37 }); |
35 |
38 |
36 this.refs.editor.clear(); |
39 this.refs.editor.clear(); |