client/src/components/NoteInput.js
changeset 17 877d8796b86d
parent 16 e67cd18cc594
child 21 284e866f55c7
equal deleted inserted replaced
16:e67cd18cc594 17:877d8796b86d
    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();