Soreine
559c8ecd82
Update selection on splitNode
2016-10-26 17:28:30 +02:00
Samy Pessé
440aebb685
Add test for selection inside a removeNodeByKey
2016-10-26 17:25:20 +02:00
Samy Pessé
f84f9fd1ef
Remove double space in warning message
2016-10-26 17:19:20 +02:00
Samy Pessé
e86269a168
Add basic tests for removeNodeByKey
2016-10-26 17:08:44 +02:00
Samy Pessé
668bd0dc01
Merge remote-tracking branch 'origin/schema-normalize-selection-ops' into schema-normalize-selection-ops
2016-10-26 16:55:55 +02:00
Samy Pessé
41df908e33
Move selection in moveNode operation
2016-10-26 16:55:42 +02:00
Soreine
62b8ed205e
setNode cannot be used to update key and nodes
2016-10-26 16:17:05 +02:00
Soreine
97aa3ecd93
Deprecating using setNode to update nodes
2016-10-26 15:59:06 +02:00
Samy Pessé
6c43cd57e1
Merge remote-tracking branch 'origin/schema-normalize-selection-ops' into schema-normalize-selection-ops
2016-10-26 14:57:15 +02:00
Samy Pessé
29afc577b0
Add more tests for removeTextByKey
2016-10-26 14:57:06 +02:00
Soreine
b3e1b3ad08
Adapt existing tests
2016-10-26 14:48:50 +02:00
Soreine
a50d381d8e
Remove console.log
2016-10-26 14:48:49 +02:00
Soreine
947513fc58
Add test to joinNodeByKey
2016-10-26 14:48:49 +02:00
Soreine
7e5f0b4779
Update selection in joinNode
operation
2016-10-26 14:48:49 +02:00
Samy Pessé
99e9a77639
Be inclusive for selection in insertText
2016-10-26 14:07:26 +02:00
Samy Pessé
9f5807e008
Use moveEnd/Start in removeText
2016-10-26 14:01:31 +02:00
Samy Pessé
0e1602c964
Merge branch 'schema-normalize-selection-ops' of https://github.com/GitbookIO/slate into schema-normalize-selection-ops
2016-10-26 13:59:05 +02:00
Samy Pessé
59583760f2
Adapt selection in removeText operation
2016-10-26 13:58:32 +02:00
Soreine
644b4b3cab
Rename extend...Offset
to move...Offset
2016-10-26 13:55:12 +02:00
Samy Pessé
e08ef88d54
Complete tests for selection and insertTextByKey
2016-10-26 13:42:48 +02:00
Samy Pessé
53d355511f
Add unit test for selection in insertText
2016-10-26 13:37:45 +02:00
Samy Pessé
8bb5bc1840
Add test for selection after the insertion
2016-10-26 13:35:00 +02:00
Samy Pessé
20fc819c8c
Add test for inserting text before selection
2016-10-26 13:11:32 +02:00
Samy Pessé
9ae17d2091
Add unit test for testing insertTextByKey with marks
2016-10-26 12:56:08 +02:00
Samy Pessé
7c046a7b98
Add more basic test for text insertion
2016-10-26 12:40:33 +02:00
Samy Pessé
8703c5390f
Add basic test for insertTextByKey
2016-10-26 12:38:00 +02:00
Samy Pessé
8c9cea2aaa
Add test.js for insertTExtByKey
2016-10-26 12:19:57 +02:00
Samy Pessé
36d6d8eb3c
Update selection in insertText operation
2016-10-26 12:15:28 +02:00
Samy Pesse
6d2b70c750
Fix merge in "docs/reference/models/transform.md"
2016-10-25 22:59:08 +02:00
Samy Pesse
a3905a8529
Adapt tests for unwrapInline
2016-10-25 22:50:47 +02:00
Samy Pesse
e873de519f
Add options with normalize to unwrapBlockByKey and unwrapInlineByKey
2016-10-25 21:58:34 +02:00
Samy Pesse
4c9e138d04
Merge remote-tracking branch 'slate/master' into schema-normalize
2016-10-25 21:55:53 +02:00
Soreine
b2b4a4d565
Fix rule INLINE_VOID_TEXTS_AROUND
...
Added an additional test. Was working previously because the
normalization was called several times recursively.
2016-10-25 21:13:14 +02:00
Soreine
b7693213a0
No lint in npm run test. Lint is done on Travis
2016-10-25 21:13:14 +02:00
Samy Pessé
f380943926
Add transform "unwrapBlockByKey" and "unwrapInlineByKey" ( #390 )
...
* Add transform .unwrapInlineByKey with test and documentation
* Add transform .unwrapBlockByKey with test and documentation
* add failing test for unwrap limited to a range
* Improve creation of selection in unwrap[Inline|Block]ByKey
* Adapt unwrapInlineAtRange to take range in consideration
* Add test to unwrapInline only one in the document
2016-10-25 12:04:12 -07:00
Samy Pesse
5477754f63
Fix #397 : resolve to leaf text in selection methods
2016-10-25 18:50:03 +02:00
Samy Pessé
0e32043315
Merge branch 'schema-normalize' of https://github.com/GitbookIO/slate into schema-normalize
2016-10-25 17:52:03 +02:00
Samy Pessé
c59ae7a544
Adapt transform deleteAtRange
2016-10-25 17:26:07 +02:00
Samy Pessé
11698bd6fc
Merge branch 'pr393' into schema-normalize
2016-10-25 15:48:46 +02:00
Soreine
ce0a5579e7
Remove a most of unused vars
2016-10-25 13:12:10 +02:00
Soreine
e81708e82f
Update eslint and add sensible rules (including important React rules)
2016-10-25 13:11:19 +02:00
Soreine
0bd52d35cd
Don't normalize on insertText if selection is not expanded
2016-10-25 12:01:18 +02:00
Soreine
dc8a588e41
Optimize transforms by-key to lookup parent only if normalize
2016-10-25 11:56:35 +02:00
Soreine
1fde66b480
Increase benchmark min samples
2016-10-25 11:20:01 +02:00
Soreine
c4a9badb73
Prettier JSON output
2016-10-25 11:19:54 +02:00
Soreine
400d49ccb3
Add benchmark for text insertion
2016-10-25 10:49:45 +02:00
Samy Pessé
efaa5deae9
Merge branch 'schema-normalize-transforms' into schema-normalize
2016-10-25 10:36:17 +02:00
Soreine
4b3a51396c
Merge branch 'master' into schema-normalize
2016-10-25 10:27:10 +02:00
Samy Pessé
c2c1fc9c9f
Remove console logs in normalize transforms
2016-10-25 10:18:29 +02:00
Samy Pessé
218bb0c472
Don't normalize when schema has no normalization rules
2016-10-25 10:15:37 +02:00