1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 19:22:35 +02:00

update docs

This commit is contained in:
Ian Storm Taylor
2019-12-05 12:52:52 -05:00
parent c34b4b7462
commit 124ff37c3a
15 changed files with 265 additions and 26 deletions

View File

@@ -13,7 +13,7 @@ Which means it must have a `text` property with a string of content.
But **any** other custom properties are also allowed, and completely up to you. This lets you tailor your data to your specific domain and use case, adding whatever formatting logic you'd like, without Slate getting in the way.
This interface-based approach separates Slate from most other rich-text editors which require you to work with their hand-rolled "model" classes, and makes it much easier to reason about. It also means that it avoids startup time penalties related to "initializing" the data model.
This interface-based approach separates Slate from most other richtext editors which require you to work with their hand-rolled "model" classes, and makes it much easier to reason about. It also means that it avoids startup time penalties related to "initializing" the data model.
## Custom Properties