restructure commands
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { selectAll } from 'prosemirror-commands'
|
||||
import { selectAll as originalSelectAll } from 'prosemirror-commands'
|
||||
import { Command } from '../types'
|
||||
|
||||
export default (): Command => ({ state, dispatch }) => {
|
||||
return selectAll(state, dispatch)
|
||||
/**
|
||||
* Select the whole document.
|
||||
*/
|
||||
export const selectAll = (): Command => ({ state, dispatch }) => {
|
||||
return originalSelectAll(state, dispatch)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user