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

@@ -12,7 +12,7 @@ One of Slate's core principles is that, unlike most other editors, it does **not
For the most part, this leads to increased flexbility without many downsides, but there are certain cases where you have to do a bit more work. Pasting is one of those cases.
Since Slate knows nothing about your schema, it can't know how to parse pasted HTML content (or other content). So, by default whenever a user pastes content into a Slate editor, it will parse it as plain text. If you want it to be smarter about pasted content, you need to override the `insert_data` command and deserialize the `DataTransfer` object's `text/html` data as you wish.
Since Slate knows nothing about your domain, it can't know how to parse pasted HTML content (or other content). So, by default whenever a user pastes content into a Slate editor, it will parse it as plain text. If you want it to be smarter about pasted content, you need to override the `insert_data` command and deserialize the `DataTransfer` object's `text/html` data as you wish.
### What browsers and devices does Slate support?