1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-25 01:33:37 +01:00

903 Commits

Author SHA1 Message Date
Samy Pesse
0246c3085b Remove normalization from transform calls 2016-10-18 22:00:50 +02:00
Samy Pesse
a49f8e1bfa Fix normalization to join adjacent text nodes 2016-10-18 21:50:42 +02:00
Samy Pesse
d4dfdacdc3 Merge PR #354 2016-10-18 21:40:01 +02:00
Samy Pesse
e591efae98 Fix normalize to join text nodes 2016-10-18 21:34:19 +02:00
Samy Pesse
bf8504b8bb Add transform.normalizeWith 2016-10-18 21:18:17 +02:00
Samy Pesse
8f6a534bc9 Change signature of Node.normalize to be recursive 2016-10-18 20:40:36 +02:00
Samy Pesse
8164bb8ce2 Add rules to prevent adjacent text and min one text 2016-10-18 19:31:35 +02:00
Samy Pesse
6f0a31c90f Refactor to move all normalization rules in "plugins/schema.js" 2016-10-18 18:47:45 +02:00
Samy Pesse
7091c9489e Merge branch 'pr392' into schema-normalize 2016-10-18 18:35:28 +02:00
Ian Storm Taylor
8150df24be Merge branch 'master' into fix-normalize-with-schema 2016-10-18 09:02:24 -07:00
Ian Storm Taylor
4242392099 updates 2016-10-18 09:02:21 -07:00
Samy Pesse
d5357cab44 Merge remote-tracking branch 'origin/master' 2016-10-18 09:41:07 +02:00
Samy Pesse
f716a9f042 Merge remote-tracking branch 'ianstormtaylor/master' 2016-10-18 09:41:02 +02:00
Samy Pessé
582603a7e8 Fix #385: Re-render when selection state changed for a node (#387)
* Re-render when selection state changed for a node

* Change condition to be an OR (focus or selection changed)
2016-10-17 16:33:21 -07:00
Samy Pesse
fc318ec78b Add transform .unwrapInlineByKey with test and documentation 2016-10-17 01:14:47 +02:00
Ian Storm Taylor
81bb5ea800 Merge branch 'master' into remove-normalize 2016-10-14 17:40:20 -07:00
Ian Storm Taylor
8213bb089f remove normalizeDocument transform 2016-10-14 17:24:03 -07:00
Ian Storm Taylor
1443968b83 handle joining text nodes with insertFragment 2016-10-14 17:22:45 -07:00
Ian Storm Taylor
8cf0a05926 handle splitting for fragments 2016-10-14 16:46:12 -07:00
Ian Storm Taylor
fa5d59c063 handle lots of splitting cases 2016-10-14 16:40:45 -07:00
LiJung Chi
b7eb15dfad fix #342, Uncaught Error: Invalid key argument when removeNodeByKey (#365)
* fix #342, Uncaught Error: Invalid `key` argument when `removeNodeByKey`

* return List() and use selection.isUnset instead

* fix default value when this.selection.isUnset
2016-10-11 09:41:42 -07:00
Ian Storm Taylor
dfe52446e7 remove debugger call 2016-10-07 16:02:39 -07:00
Ian Storm Taylor
70ee777f37 handle joining and inserting text nodes for moveNodeByKey 2016-10-07 16:02:18 -07:00
Ian Storm Taylor
5d27344fb7 handle text cases for setNodeByKey 2016-10-06 18:39:54 -07:00
Ian Storm Taylor
db3f00db6d handle joining text nodes when removing inlines between them 2016-10-06 18:19:31 -07:00
Ian Storm Taylor
e86add851f handle removing text nodes when removing all characters 2016-10-06 11:29:12 -07:00
Ian Storm Taylor
105fba0456 handle regenerating keys on insert 2016-10-06 11:11:10 -07:00
Ian Storm Taylor
7d9620d707 Merge branch 'master' into remove-normalize 2016-10-04 15:41:17 -07:00
Ian Storm Taylor
3061b6e607 0.14.15 v0.14.15 2016-10-04 12:28:50 -07:00
eden lane
59c043863d handling ctrl + k hotkey on mac (#359)
* handling ctrl + k hotkey on mac

* fixed trailing spaces
2016-10-04 12:20:16 -07:00
Nicolas Gaborit
f87e4dc72b Remove old snapshot parameter for Transform.apply (#361) 2016-10-04 12:19:31 -07:00
Ian Storm Taylor
dd6d13e33e 0.14.14 v0.14.14 2016-09-26 21:52:47 -07:00
Ian Storm Taylor
a9f28722e5 tweak inline void component rendering, fix rendering tests 2016-09-26 21:50:21 -07:00
Ian Storm Taylor
686cd95aab add postpublish script, closes #355 2016-09-26 21:44:42 -07:00
Ian Storm Taylor
071d7292b8 fix block void node handling, closes #358 2016-09-26 21:42:25 -07:00
Ian Storm Taylor
eea034abf6 remove extra normalize method 2016-09-23 11:35:09 -07:00
Ian Storm Taylor
9df223bce9 handle surrounding inline void nodes on insert 2016-09-23 11:33:29 -07:00
Ian Storm Taylor
bd26153dfb update schema 2016-09-23 11:22:06 -07:00
Ian Storm Taylor
2ed1efbdd4 add insert tests, and set inline void tests, and start normalize fix 2016-09-23 11:05:34 -07:00
Ian Storm Taylor
e63a6b36ce 0.14.13 v0.14.13 2016-09-23 09:48:58 -07:00
Samy Pessé
d1c3700bd2 Fix #234: fix typing text near inline void nodes (#339)
* Add base tests for isVoid with around text node

* Ensure that void nodes are surrounded by text nodes in Node.normalize

* Only wrap inline void nodes with text

* Fix indentation

* Add emojis example

* Adapt unit test "transforms/fixtures/at-current-range/set-inline/with-is-void"

* Adapt unit test "transforms/fixtures/at-current-range/insert-inline/with-inline"

* Adapt unit test "transforms/fixtures/at-current-range/insert-inline/block-start"

* add passing parent to leaf nodes, for rendering breaks

* add zero-width spaces in empty text nodes, to allow selections

* add zero-width space handling to copy/cut

* fix delete handling around inline void nodes

* fix tests for inline void nodes

* fix style

* fix void cursor handling across browsers

* fix void rendering tests
2016-09-23 09:46:24 -07:00
Ian Storm Taylor
f7e132ed61 0.14.12 v0.14.12 2016-09-22 16:13:45 -07:00
Ian Storm Taylor
cd822347bf update gh-pages script 2016-09-22 16:11:34 -07:00
Ian Storm Taylor
1aba4b9f94 fix deleting across nested blocks, closes #341 2016-09-22 16:08:52 -07:00
Ian Storm Taylor
785bd3e82e 0.14.11 v0.14.11 2016-09-22 15:45:02 -07:00
Ian Storm Taylor
c81c1f9d95 remove debuggers 2016-09-22 15:42:29 -07:00
Ian Storm Taylor
a1647b51be fix for splitting blocks inside inline nodes, and undoing inline wrapping
fixes #346
fixes #348
2016-09-22 15:39:03 -07:00
Suwijak Chaipipat
8300fad52b Prevent backspace to move selection into table-cell (#345) 2016-09-22 08:57:33 -07:00
Ian Storm Taylor
447a6aace4 0.14.10 v0.14.10 2016-09-21 11:46:15 -07:00
Nicolas Gaborit
bcb2fc39e5 Focus and blur should not clear marks on selection (#338)
* Do not clear mark on focus/blur

* Add tests
2016-09-21 11:43:03 -07:00