mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 20:40:19 +02:00
remove Editor.toggleMarks
from docs
This commit is contained in:
@@ -121,7 +121,7 @@ const App = () => {
|
||||
|
||||
case 'b': {
|
||||
event.preventDefault()
|
||||
Editor.toggleMarks(editor, [{ type: 'bold' }])
|
||||
Editor.addMarks(editor, [{ type: 'bold' }])
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user