move commands again
This commit is contained in:
9
packages/core/src/commands/insertText.ts
Normal file
9
packages/core/src/commands/insertText.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Command } from '../Editor'
|
||||
|
||||
export default (value: string): Command => ({ tr, dispatch }) => {
|
||||
if (dispatch) {
|
||||
tr.insertText(value)
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user