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

fix shortcuts

parent 1fac5b88
No related branches found
No related tags found
1 merge request!45Develop
......@@ -15,15 +15,14 @@ import {
class ShortCuts {
keys = {};
constructor(plugins, schema) {
this.insertBreak = this.insertBreak.bind(this);
this.insertRule = this.insertRule.bind(this);
this.PmPlugins = plugins;
this.schema = schema;
this.keys = this.getKeys();
this.insertBreak = this.insertBreak.bind(this);
this.insertRule = this.insertRule.bind(this);
}
insertBreak(state, dispatch) {
console.log(this.schema);
const br = this.schema.nodes.hard_break.create();
dispatch(state.tr.replaceSelectionWith(br).scrollIntoView());
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