mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-02 11:42:53 +02:00
Docs remove unused selection (#4927)
This commit is contained in:
@@ -33,7 +33,6 @@ const App = () => {
|
|||||||
onKeyDown={event => {
|
onKeyDown={event => {
|
||||||
if (event.key === '`' && event.ctrlKey) {
|
if (event.key === '`' && event.ctrlKey) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
const { selection } = editor
|
|
||||||
const [match] = Editor.nodes(editor, {
|
const [match] = Editor.nodes(editor, {
|
||||||
match: n => n.type === 'code',
|
match: n => n.type === 'code',
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user