add more core commands
This commit is contained in:
9
packages/core/src/commands/newlineInCode.ts
Normal file
9
packages/core/src/commands/newlineInCode.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { newlineInCode as originalNewlineInCode } from 'prosemirror-commands'
|
||||
import { Command } from '../types'
|
||||
|
||||
/**
|
||||
* Add a newline character in code.
|
||||
*/
|
||||
export const newlineInCode = (): Command => ({ state, dispatch }) => {
|
||||
return originalNewlineInCode(state, dispatch)
|
||||
}
|
||||
Reference in New Issue
Block a user