mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00
17 lines
317 B
TypeScript
17 lines
317 B
TypeScript
import { Command, RawCommands } from '../types'
|
|
|
|
declare module '@tiptap/core' {
|
|
interface Commands {
|
|
enter: {
|
|
/**
|
|
* Trigger enter.
|
|
*/
|
|
enter: () => Command,
|
|
}
|
|
}
|
|
}
|
|
|
|
export const enter: RawCommands['enter'] = () => ({ commands }) => {
|
|
return commands.keyboardShortcut('Enter')
|
|
}
|