1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-02 03:32:36 +02:00

Remove commands (#3351)

* remove commands in favor of editor-level functions

* update examples

* fix lint
This commit is contained in:
Ian Storm Taylor
2019-12-18 15:00:42 -05:00
committed by GitHub
parent c2d7905e19
commit 0bbe121d76
578 changed files with 3532 additions and 3370 deletions

View File

@@ -3,7 +3,7 @@
import { jsx } from '../..'
export const run = editor => {
editor.exec({ type: 'delete_backward' })
editor.deleteBackward()
}
export const input = (

View File

@@ -3,7 +3,7 @@
import { jsx } from '../..'
export const run = editor => {
editor.exec({ type: 'delete_backward' })
editor.deleteBackward()
}
export const input = (

View File

@@ -1,10 +1,10 @@
/** @jsx jsx */
import { Editor } from 'slate'
import { Transforms } from 'slate'
import { jsx } from '../..'
export const run = editor => {
Editor.delete(editor)
Transforms.delete(editor)
}
export const input = (

View File

@@ -1,10 +1,10 @@
/** @jsx jsx */
import { Editor } from 'slate'
import { Transforms } from 'slate'
import { jsx } from '../..'
export const run = editor => {
Editor.delete(editor)
Transforms.delete(editor)
}
export const input = (

View File

@@ -1,10 +1,10 @@
/** @jsx jsx */
import { Editor } from 'slate'
import { Transforms } from 'slate'
import { jsx } from '../..'
export const run = editor => {
Editor.delete(editor)
Transforms.delete(editor)
}
export const input = (