Merge pull request #283 from jorilallo/kb-shortcuts

Shortcuts Documentation
This commit is contained in:
Jori Lallo
2017-10-01 16:40:32 -07:00
committed by GitHub
10 changed files with 137 additions and 21 deletions

View File

@@ -22,6 +22,11 @@ export default function KeyboardShortcuts() {
return this.toggleMark(state, 'underlined');
case 'd':
return this.toggleMark(state, 'deleted');
case 'k':
return state
.transform()
.wrapInline({ type: 'link', data: { href: '' } })
.apply();
default:
return null;
}