Add cmd+k to insert link

This commit is contained in:
Tom Moor
2017-09-30 20:53:17 -07:00
parent 6b5fef4954
commit 76d0597e97
2 changed files with 9 additions and 0 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;
}