1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 10:51:44 +02:00

remove the slate-schema package (#3291)

This commit is contained in:
Ian Storm Taylor
2019-12-10 17:53:27 -05:00
committed by GitHub
parent 9d4a9d7a65
commit e68a5cd305
68 changed files with 40 additions and 1892 deletions

View File

@@ -130,7 +130,7 @@ const App = () => {
Okay, so we've got the hotkey handler setup... but! If you happen to now try selecting text and hitting `Ctrl-B`, you won't notice any change. That's because we haven't told Slate how to render a "bold" mark.
For every format you want to add to your schema, Slate will break up the text content into "leaves", and you need to tell Slate how to read it, just like for elements. So let's define a `Leaf` component:
For every format you add, Slate will break up the text content into "leaves", and you need to tell Slate how to read it, just like for elements. So let's define a `Leaf` component:
```js
// Define a React component to render leaves with bold text.