David O'Trakoun
13025d79a6
Some fixes ( #1225 )
...
Ensure el has a tagName (e.g. textnode will not have a tagName) - found in slack channel
Strict equality checks for strings
2017-10-13 10:07:12 -07:00
Ian Storm Taylor
b1469d62eb
fix tests
2017-10-12 20:03:18 -07:00
Renaud Chaput
a68a6466f9
[Doc] Remove unused code in Plugins Walkthroughs ( #1172 )
...
The `BoldMark` function has been inlined below, it is no longer used here
2017-10-12 19:59:56 -07:00
Ryan Yurkanin
b45e63c472
reversing return only logic ( #1206 )
2017-10-12 19:56:18 -07:00
Ian Storm Taylor
d6859bef53
Merge branch 'master' of github.com:ianstormtaylor/slate
2017-10-12 14:25:06 -07:00
Ian Storm Taylor
c36362a425
fix void blocks to node be inline-block, closes #1210
2017-10-12 14:24:38 -07:00
Ian Storm Taylor
b63a84025a
update JSFiddle template
2017-10-12 14:20:29 -07:00
Ian Storm Taylor
5047007092
update JSFiddle url
2017-10-12 14:20:06 -07:00
Gabin Aureche
678589a809
Fix broken link to setKeyGenerator ( #1214 )
2017-10-11 00:42:59 -07:00
David O'Trakoun
9587bc4a50
Sanitize tagName check ( #1212 )
...
`In XML (and XML-based languages such as XHTML), tagName preserves case. On HTML elements in DOM trees flagged as HTML documents, tagName returns the element name in the uppercase form.`
2017-10-09 22:00:42 -07:00
Conor Cussell
e0d7122881
Document replaceNodeByKey
( #1200 )
...
* Document `replaceNodeByKey`
* Update change.md
2017-10-02 11:29:16 -07:00
Ian Storm Taylor
f9894ed443
Publish
...
- slate-react@0.2.1
slate-react@0.2.1
2017-09-29 11:13:30 -07:00
Ian Storm Taylor
ed77bf0fa1
fix change queueing in <Editor> ( #1196 )
2017-09-29 11:12:13 -07:00
Ian Storm Taylor
fbefe18110
Publish
...
- slate-base64-serializer@0.1.10
- slate-dev-logger@0.1.11
- slate-html-serializer@0.1.13
- slate-hyperscript@0.1.10
- slate-plain-serializer@0.1.11
- slate-prop-types@0.1.10
- slate-react@0.2.0
- slate-simulator@0.1.10
- slate@0.25.3
slate@0.25.3
slate-simulator@0.1.10
slate-react@0.2.0
slate-prop-types@0.1.10
slate-plain-serializer@0.1.11
slate-hyperscript@0.1.10
slate-html-serializer@0.1.13
slate-dev-logger@0.1.11
slate-base64-serializer@0.1.10
2017-09-29 09:18:17 -07:00
Ian Storm Taylor
3c3093448f
update changelog
2017-09-29 09:12:06 -07:00
Ian Storm Taylor
f442255739
re-add the onBeforeChange handling for normalizing to the <Editor> ( #1195 )
...
* re-add the onBeforeChange handling for normalizing to the <Editor>
* fix syntax
* add normalization with core schema too
* fix lint warning
2017-09-29 09:11:41 -07:00
Ian Storm Taylor
563e2bc5c0
Publish
...
- slate-html-serializer@0.1.12
slate-html-serializer@0.1.12
2017-09-28 23:05:09 -07:00
Ian Storm Taylor
9a12d3a7b1
Merge branch 'master' of github.com:ianstormtaylor/slate
2017-09-28 23:04:40 -07:00
Ian Storm Taylor
6d04cae274
fix html-serializer for jsdom use
2017-09-28 23:04:34 -07:00
AlbertHilb
9bef508d87
Add props.attributes
to the element used to render paragraphs. ( #1188 )
2017-09-27 18:35:06 -07:00
Ian Storm Taylor
c90f5f0825
Publish
...
- slate-base64-serializer@0.1.9
- slate-dev-logger@0.1.10
- slate-html-serializer@0.1.11
- slate-hyperscript@0.1.9
- slate-plain-serializer@0.1.10
- slate-prop-types@0.1.9
- slate-react@0.1.10
- slate-simulator@0.1.9
- slate@0.25.2
slate@0.25.2
slate-simulator@0.1.9
slate-react@0.1.10
slate-prop-types@0.1.9
slate-plain-serializer@0.1.10
slate-hyperscript@0.1.9
slate-html-serializer@0.1.11
slate-dev-logger@0.1.10
slate-base64-serializer@0.1.9
2017-09-27 08:41:36 -07:00
Ian Storm Taylor
b8841cb300
curse you lerna
2017-09-27 08:40:43 -07:00
Ryan Yurkanin
f1f2db807e
Adding regular build to the prepublish flow ( #1184 )
2017-09-26 18:37:42 -07:00
Ian Storm Taylor
9df4b6f65a
Publish
...
- slate-html-serializer@0.1.10
- slate-plain-serializer@0.1.9
- slate-react@0.1.9
slate-react@0.1.9
slate-plain-serializer@0.1.9
slate-html-serializer@0.1.10
2017-09-26 10:08:19 -07:00
Nicolas Gaborit
dba3497b77
Apply stack.onBeforeChange in editor.onChange ( #1183 )
2017-09-26 10:06:05 -07:00
Ian Storm Taylor
c98ad903c8
Upgrade docs ( #1182 )
...
* remove table of contents
* remove more hard-coded table of contents
* remove comparisons, rewrite "why" section to be more general
* update intro
2017-09-25 11:50:23 -07:00
Yifeng Wang
f34a716ee7
update import declaration in walkthrough ( #1174 )
2017-09-25 08:43:18 -07:00
Ian Storm Taylor
4652f96d8d
add benchmarks for html and plain serializers, fixes #1168 ( #1169 )
2017-09-22 18:38:41 -07:00
Ryan Yurkanin
8a68d8a749
Text nodes aware if the parent reference has changed to reupdate ( #1166 )
2017-09-22 07:55:13 -07:00
Ian Storm Taylor
4f730d9c64
Publish
...
- slate-html-serializer@0.1.9
slate-html-serializer@0.1.9
2017-09-21 14:48:38 -07:00
Ian Storm Taylor
f16a902d35
ocd
2017-09-21 14:47:50 -07:00
WangChienChieh
2d7642b9d3
Pasting external HTML does not work with Slate example. ( #1129 ) ( #1146 )
...
* Pasting external HTML does not work with Slate example. (#1129 )
*Due to the upgrade of slate, adjust the way of el.attrs.find to el.href.
* Update index.js
2017-09-21 14:45:24 -07:00
Ryan Grove
6f889454d0
Fix error when pasted HTML includes a doctype ( #1160 )
...
* Fix error when pasted HTML includes a doctype
When pasted HTML includes a doctype definition, `parsed.childNodes[0]`
is the doctype node, not the `<html>` node, so it's not safe to assume
that `parsed.childNodes[0].childNodes[1]` is the `<body>` node.
Using `parsed.body` ensures that we always get the `<body>` node no
matter where it is in the document.
* Update index.js
2017-09-21 14:41:08 -07:00
Ian Storm Taylor
c3f188c39f
Publish
...
- slate-base64-serializer@0.1.8
- slate-dev-logger@0.1.9
- slate-html-serializer@0.1.8
- slate-hyperscript@0.1.8
- slate-plain-serializer@0.1.8
- slate-prop-types@0.1.8
- slate-react@0.1.8
- slate-simulator@0.1.8
- slate@0.25.1
slate@0.25.1
slate-simulator@0.1.8
slate-react@0.1.8
slate-prop-types@0.1.8
slate-plain-serializer@0.1.8
slate-hyperscript@0.1.8
slate-html-serializer@0.1.8
slate-dev-logger@0.1.9
slate-base64-serializer@0.1.8
2017-09-21 13:30:49 -07:00
Ian Storm Taylor
f983a58d3b
remove unnecessary changes from deleteAtRange
2017-09-21 13:30:20 -07:00
Ian Storm Taylor
95fcf27472
update readme to point to yarn
2017-09-21 13:16:07 -07:00
Ian Storm Taylor
3b48a083f8
Publish
...
- slate-base64-serializer@0.1.7
- slate-dev-logger@0.1.8
- slate-html-serializer@0.1.7
- slate-hyperscript@0.1.7
- slate-plain-serializer@0.1.7
- slate-prop-types@0.1.7
- slate-react@0.1.7
- slate-simulator@0.1.7
- slate@0.25.0
slate@0.25.0
slate-simulator@0.1.7
slate-react@0.1.7
slate-prop-types@0.1.7
slate-plain-serializer@0.1.7
slate-hyperscript@0.1.7
slate-html-serializer@0.1.7
slate-dev-logger@0.1.8
slate-base64-serializer@0.1.7
2017-09-21 13:01:28 -07:00
Ian Storm Taylor
1320d56c4f
fix tests
2017-09-21 12:59:41 -07:00
Ian Storm Taylor
a5f91ab7d4
update changelog
2017-09-21 12:55:30 -07:00
Ian Storm Taylor
a2b922276f
remove pseudo-normalization from Node.create, fixes #1155 ( #1158 )
2017-09-21 12:52:51 -07:00
Per-Kristian Nordnes
c070ae7aba
Add replaceNodeByKey change ( #1117 )
2017-09-21 12:52:41 -07:00
Ian Storm Taylor
31c1f6e9b7
Publish
...
- slate-base64-serializer@0.1.6
- slate-dev-logger@0.1.7
- slate-html-serializer@0.1.6
- slate-hyperscript@0.1.6
- slate-plain-serializer@0.1.6
- slate-prop-types@0.1.6
- slate-react@0.1.6
- slate-simulator@0.1.6
- slate@0.24.6
slate@0.24.6
slate-simulator@0.1.6
slate-react@0.1.6
slate-prop-types@0.1.6
slate-plain-serializer@0.1.6
slate-hyperscript@0.1.6
slate-html-serializer@0.1.6
slate-dev-logger@0.1.7
slate-base64-serializer@0.1.6
2017-09-21 11:56:10 -07:00
Ian Storm Taylor
375573f9ee
fix copying text with leading/trailing white space, fixes #1153 ( #1157 )
...
* fix copying text with leading/trailing white space, fixes #1153
* remove extra removeChild
2017-09-21 11:55:22 -07:00
Ian Storm Taylor
3aa5f41cff
refactor deleteAtRange() to remove unnecessary splits, fixes #1152 ( #1156 )
2017-09-21 11:32:26 -07:00
AlbertHilb
4212c63872
Move code used to render text nodes into a separate React component ( #1150 )
...
* Move code used to render text nodes from `Node` into a separate
React component.
* Fix comments.
2017-09-21 10:02:29 -07:00
Benjamin Kniffler
13fd6d3a62
Fix warning with latest react due to autocorrect being bool ( #1148 )
...
`Received 'true' for non-boolean attribute 'autoCorrect'. If this is expected, cast the value to a string.`
Latest react won't autocast the bool to on/off
2017-09-20 08:29:03 -07:00
David O'Trakoun
e2d7a3acad
typo ( #1145 )
2017-09-19 22:01:23 -07:00
Ian Storm Taylor
007c71a928
Publish
...
- slate-base64-serializer@0.1.5
- slate-dev-logger@0.1.6
- slate-html-serializer@0.1.5
- slate-hyperscript@0.1.5
- slate-plain-serializer@0.1.5
- slate-prop-types@0.1.5
- slate-react@0.1.5
- slate-simulator@0.1.5
- slate@0.24.5
slate@0.24.5
slate-simulator@0.1.5
slate-react@0.1.5
slate-prop-types@0.1.5
slate-plain-serializer@0.1.5
slate-hyperscript@0.1.5
slate-html-serializer@0.1.5
slate-dev-logger@0.1.6
slate-base64-serializer@0.1.5
2017-09-19 08:53:51 -07:00
AlbertHilb
1663e4b81c
Make Void
block component width 100%
. ( #1142 )
...
* Make `Void` block component width `100%`.
* Update tests.
2017-09-19 08:53:07 -07:00
Gabin Aureche
33a36679d9
Add a way to customize shouldComponentUpdate logic ( #1140 )
...
* Add a way to customize shouldComponentUpdate logic
* Clean
* Warn when returning false in shouldNodeComponentUpdate
* Clean
2017-09-19 08:52:38 -07:00