refactoring
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { Command, Commands } from '../types'
|
||||
|
||||
/**
|
||||
* Trigger enter.
|
||||
*/
|
||||
export const enter: Commands['enter'] = () => ({ commands }) => {
|
||||
return commands.keyboardShortcut('Enter')
|
||||
}
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands {
|
||||
/**
|
||||
* Trigger enter.
|
||||
*/
|
||||
enter: () => Command,
|
||||
}
|
||||
}
|
||||
|
||||
export const enter: Commands['enter'] = () => ({ commands }) => {
|
||||
return commands.keyboardShortcut('Enter')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user