mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 02:49:56 +02:00
Remove commands (#3351)
* remove commands in favor of editor-level functions * update examples * fix lint
This commit is contained in:
@@ -4,7 +4,7 @@ import { Editor } from 'slate'
|
||||
import { jsx } from '../..'
|
||||
|
||||
export const run = editor => {
|
||||
editor.exec({ type: 'insert_break' })
|
||||
editor.insertBreak()
|
||||
}
|
||||
|
||||
export const input = (
|
||||
|
Reference in New Issue
Block a user