1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-16 04:04:06 +02:00

Merge branch 'master' of github.com:ianstormtaylor/slate

This commit is contained in:
Ian Storm Taylor
2017-10-12 14:25:06 -07:00
4 changed files with 6 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ If you don't include these, there's a very good chance your issue will be closed
We need to keep the issues actionable, or else maintaining Slate becomes overwhelming. Thank you for understanding! We need to keep the issues actionable, or else maintaining Slate becomes overwhelming. Thank you for understanding!
https://jsfiddle.net/2zokvrvt/179/ https://jsfiddle.net/2zokvrvt/192/
http://recordit.co/ http://recordit.co/
--> -->

View File

@@ -21,13 +21,13 @@ If you run into any weird behavior while using Slate, feel free to open a new is
Any issue you open must include: Any issue you open must include:
- A [JSFiddle](https://jsfiddle.net/2zokvrvt/179/) that reproduces the bug with a minimal setup. - A [JSFiddle](https://jsfiddle.net/2zokvrvt/192/) that reproduces the bug with a minimal setup.
- A GIF showing the issue in action. (Using something like [RecordIt](http://recordit.co/).) - A GIF showing the issue in action. (Using something like [RecordIt](http://recordit.co/).)
- A clear explanation of what the issue is. - A clear explanation of what the issue is.
Here's a [JSFiddle template for Slate](https://jsfiddle.net/2zokvrvt/179/) to get you started: Here's a [JSFiddle template for Slate](https://jsfiddle.net/2zokvrvt/192/) to get you started:
[![](./docs/images/jsfiddle.png)](https://jsfiddle.net/2zokvrvt/179/) [![](./docs/images/jsfiddle.png)](https://jsfiddle.net/2zokvrvt/192/)
## Asking Questions ## Asking Questions

View File

@@ -13,7 +13,7 @@ A short-lived, unique identifier for the node.
By default, keys are **not** meant to be long-lived unique identifiers for nodes that you might store in a database, or elsewhere. They are meant purely to identify a node inside of a single Slate instance. For that reason, they are simply auto-incrementing strings. (eg. `'0'`, `'1'`, `'2'`, ...) By default, keys are **not** meant to be long-lived unique identifiers for nodes that you might store in a database, or elsewhere. They are meant purely to identify a node inside of a single Slate instance. For that reason, they are simply auto-incrementing strings. (eg. `'0'`, `'1'`, `'2'`, ...)
If you want to make your keys uniqueness long-lived, you'll need to supply your own key generating function via the [`setKeyGenerator`](../utils/utils.md#setkeygenerator) util. If you want to make your keys uniqueness long-lived, you'll need to supply your own key generating function via the [`setKeyGenerator`](./utils.md#setkeygenerator) util.
### `nodes` ### `nodes`
`Immutable.List` `Immutable.List`

View File

@@ -27,7 +27,7 @@ const String = new Record({
const TEXT_RULE = { const TEXT_RULE = {
deserialize(el) { deserialize(el) {
if (el.tagName == 'br') { if (el.tagName.toLowerCase() == 'br') {
return { return {
kind: 'text', kind: 'text',
ranges: [{ text: '\n' }], ranges: [{ text: '\n' }],