1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 14:11:35 +02:00

Swap remove_mark/add_mark example (#3349)

This commit is contained in:
Dylan Markow
2019-12-18 09:25:55 -08:00
committed by Ian Storm Taylor
parent af7a7e7c45
commit 0e4917f49b

View File

@@ -23,9 +23,9 @@ Now you would write:
```js
if (isActive) {
editor.exec({ type: 'add_mark', key: 'bold', value: true })
} else {
editor.exec({ type: 'remove_mark', key: 'bold' })
} else {
editor.exec({ type: 'add_mark', key: 'bold', value: true })
}
```