1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

Fix a few issues with the documentation (#3679)

* Fix a few issues with the documentation

* Add Kitemaker to the list of sites using Slate
This commit is contained in:
Kevin Simons
2020-05-13 17:56:24 +02:00
committed by GitHub
parent aabb9b50bd
commit 3c80c3e88b
5 changed files with 5 additions and 4 deletions

View File

@@ -86,4 +86,4 @@ const App = () => {
With that added, try typing `&`, and you should see it suddenly become `and` instead!
This offers a sense of what can be done with Slate's event handlers. Each one will be called with the `event` object, and the `editor` that lets you perform commands. Simple!
This offers a sense of what can be done with Slate's event handlers. Each one will be called with the `event` object, and you can use your `editor` to perform commands in response. Simple!

View File

@@ -134,7 +134,7 @@ const Leaf = props => {
Pretty familiar, right?
And now, let's tell Slate about that leaf. To do that, we'll pass in the `renderLeaf` prop to our editor. Also, let's allow our formatting to be toggled by adding active-checking logic.
And now, let's tell Slate about that leaf. To do that, we'll pass in the `renderLeaf` prop to our editor.
```jsx
const App = () => {