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