editor cancels to initial state

This commit is contained in:
muerwre 2018-09-03 18:03:09 +07:00
parent bed9ea6948
commit fce88cac29
3 changed files with 50 additions and 4 deletions

View file

@ -25,7 +25,7 @@ export class EditorPanel extends React.PureComponent {
stopEditing = () => {
if (!this.props.changed){
this.props.editor.stopEditing();
this.props.editor.cancelEditing();
} else {
this.props.editor.changeMode(MODES.CONFIRM_CANCEL);
}