Skip to content
Snippets Groups Projects
Commit adf8ff2d authored by chris's avatar chris
Browse files

reset tr

parent 5aa5214a
No related branches found
No related tags found
No related merge requests found
......@@ -59,9 +59,8 @@ export default props => {
const parse = parser(view.props.options.schema);
WaxOptions.doc = parse('');
view.updateState(EditorState.create(WaxOptions));
if (view.dispatch) {
view.state.tr.setMeta('addToHistory', false);
view.dispatch(view.state.tr.setMeta('addToHistory', false));
}
return true;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment