mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 19:01:54 +02:00
This commit is contained in:
@@ -81,7 +81,7 @@ const App = () => {
|
||||
// When "B" is pressed, add a bold mark to the text.
|
||||
case 'b': {
|
||||
event.preventDefault()
|
||||
Editor.addMarks(editor, [{ type: 'bold' }])
|
||||
Editor.addMarks(editor, { type: 'bold' })
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -154,7 +154,7 @@ const App = () => {
|
||||
|
||||
case 'b': {
|
||||
event.preventDefault()
|
||||
Editor.addMarks(editor, [{ type: 'bold' }])
|
||||
Editor.addMarks(editor, { type: 'bold' })
|
||||
break
|
||||
}
|
||||
}
|
||||
|
@@ -55,7 +55,7 @@ const App = () => {
|
||||
|
||||
case 'b': {
|
||||
event.preventDefault()
|
||||
Editor.addMarks(editor, [{ type: 'bold' }])
|
||||
Editor.addMarks(editor, { type: 'bold' })
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user