mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-24 09:13:24 +01:00
24 lines
319 B
JavaScript
24 lines
319 B
JavaScript
/** @jsx jsx */
|
|
|
|
import { Editor } from 'slate'
|
|
import { jsx } from '../..'
|
|
|
|
export const run = editor => {
|
|
Editor.delete(editor)
|
|
}
|
|
|
|
export const input = (
|
|
<editor>
|
|
<block a>
|
|
o<anchor />
|
|
ne
|
|
</block>
|
|
<block b>
|
|
tw
|
|
<focus />o
|
|
</block>
|
|
</editor>
|
|
)
|
|
|
|
export const output = input
|