mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-01 03:11:44 +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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user