mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00
18 lines
422 B
TypeScript
18 lines
422 B
TypeScript
import { selectAll as originalSelectAll } from 'prosemirror-commands'
|
|
import { Command, RawCommands } from '../types'
|
|
|
|
declare module '@tiptap/core' {
|
|
interface Commands {
|
|
selectAll: {
|
|
/**
|
|
* Select the whole document.
|
|
*/
|
|
selectAll: () => Command,
|
|
}
|
|
}
|
|
}
|
|
|
|
export const selectAll: RawCommands['selectAll'] = () => ({ state, dispatch }) => {
|
|
return originalSelectAll(state, dispatch)
|
|
}
|