1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-24 09:13:24 +01:00

39 Commits

Author SHA1 Message Date
Ian Storm Taylor
1c86b2fcf7 fix deleting sibling inline node 2016-07-27 22:30:37 -07:00
Ian Storm Taylor
fc8fb18fda fix deleting sibling text node 2016-07-27 17:09:10 -07:00
Ian Storm Taylor
42cbcb7e8d change void nodes to have a single space, prevent text-less inlines 2016-07-27 16:21:55 -07:00
Ian Storm Taylor
8916ee0891 fix to remove extra empty text nodes, closes #171 2016-07-26 11:51:20 -07:00
Ian Storm Taylor
98c78e4d96 refactor raw serializer to not be terse by default 2016-07-25 13:29:29 -07:00
Ian Storm Taylor
81c956228b more work on draggable nodes 2016-07-24 18:57:09 -07:00
Ian Storm Taylor
3bd000d118 add draggable nodes, first steps 2016-07-24 18:04:11 -07:00
Ian Storm Taylor
466f377ffa fixes for style and consistency 2016-07-24 17:59:26 -07:00
Mathieu Dutour
8407023e5f add setNodeByKey transform (#157)
* modifyNode transform

* create DOCUMENT_NODE_TRANSFORMS and use assertDescendant to get the node directly

* rename to setNodeByKey
2016-07-24 17:53:28 -07:00
Ian Storm Taylor
f8f01949e4 add tests for insertText with marks 2016-07-22 20:22:01 -07:00
Ian Storm Taylor
0dc348dec8 add insertText transform tests 2016-07-21 16:08:12 -07:00
Ian Storm Taylor
eb95b79a00 add wrapInline transform tests 2016-07-21 16:03:02 -07:00
Ian Storm Taylor
1bf729db5f add wrapBlock transform tests 2016-07-21 15:50:08 -07:00
Ian Storm Taylor
dd189f7385 add unwrapInline transform tests 2016-07-21 15:48:05 -07:00
Ian Storm Taylor
49c5754c8e add unwrapBlock transform tests 2016-07-21 15:41:59 -07:00
Ian Storm Taylor
986e49aaac add splitBlock and splitInline transforms tests 2016-07-21 15:35:29 -07:00
Ian Storm Taylor
37829137c6 add setBlock and setInline transform tests 2016-07-21 15:15:50 -07:00
Ian Storm Taylor
f5ca91df8a add deleteForward and deleteBackward transform tests 2016-07-21 14:57:26 -07:00
Ian Storm Taylor
7615ce8611 add insertFragment transform tests 2016-07-21 14:57:17 -07:00
Ian Storm Taylor
33b1b1379b add delete() tests 2016-07-21 12:30:29 -07:00
Ian Storm Taylor
00261eded9 add toggleMarkAtRange remove tests 2016-07-21 12:26:11 -07:00
Ian Storm Taylor
4d69df224a add removeMark tests, update toggleMark tests 2016-07-21 12:23:47 -07:00
Ian Storm Taylor
4197921946 add selection assertions to addMark tests 2016-07-21 12:17:12 -07:00
Ian Storm Taylor
035ae4451a add more mark tests 2016-07-21 11:59:39 -07:00
Ian Storm Taylor
0ebe5b4b64 add toggleMark and toggleMarkAtRange transforms 2016-07-21 11:59:21 -07:00
Ian Storm Taylor
f1b961fc35 add memoization and clean up node methods (#141)
* cleanup node methods

* add first stab at memoization of node methods

* rename getTextNodes() to getTexts() for consistency
2016-07-20 21:36:52 -07:00
Ian Storm Taylor
9499b9188b change unwrapBlock to operate only on the siblings in a range 2016-07-20 14:13:29 -07:00
Ian Storm Taylor
f25e67178e rename mark tests 2016-07-18 12:02:00 -07:00
Somasundaram Ayyappan
0289edfc29 Rename mark/unmark transforms to addMark/removeMark (#113)
* Rename mark/unmark transforms to addMark/removeMark

* delete gitkeep
2016-07-18 12:00:30 -07:00
Ian Storm Taylor
7e5642d848 add ability to turn off collapsed cursor marks, closes #88 2016-07-14 14:34:04 -07:00
Ian Storm Taylor
87ea0887bf add support for collapsed cursor marks, fixes #82 2016-07-14 09:22:41 -07:00
Ian Storm Taylor
2aa8239448 fix wrapInline selecting, add rendering tests 2016-07-13 18:56:03 -07:00
Ian Storm Taylor
1069fee13a add isVoid property to nodes 2016-06-30 11:13:56 -07:00
Ian Storm Taylor
5d21a315f7 add more tests 2016-06-27 15:19:51 -07:00
Ian Storm Taylor
d9a33657a8 got insert fragment working 2016-06-24 18:01:34 -07:00
Ian Storm Taylor
cd21f2ede8 fix block splitting logic 2016-06-24 13:44:22 -07:00
Ian Storm Taylor
2b32e0269c bleh, revert some stuff 2016-06-23 23:01:45 -07:00
Ian Storm Taylor
e0e909f075 holy shit delete range rabbit hole 2016-06-23 22:30:26 -07:00
Ian Storm Taylor
64e837230d restructure test dir 2016-06-23 11:36:43 -07:00