mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 08:47:50 +08:00
d270419ad8
Similarly removed in Prosemirror at ProseMirror/prosemirror-commands@20371c58 For users who wish to preserve this behaviour, they can achieve this via: ```javascript const CustomKeyboardBehaviour = Extension.create({ addKeyboardShortcuts() { return { ['Home']: () => this.editor.commands.selectTextblockStart(), ['End']: () => this.editor.commands.selectTextblockEnd(), } } }) const editor = new Editor({ extensions: [ // Register your custom extension with the editor. CustomKeyboardBehaviour, ] }); ``` |
||
---|---|---|
.. | ||
commands | ||
extensions | ||
helpers | ||
inputRules | ||
pasteRules | ||
utilities | ||
CommandManager.ts | ||
Editor.ts | ||
EventEmitter.ts | ||
Extension.ts | ||
ExtensionManager.ts | ||
index.ts | ||
InputRule.ts | ||
Mark.ts | ||
Node.ts | ||
NodeView.ts | ||
PasteRule.ts | ||
style.ts | ||
Tracker.ts | ||
types.ts |