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

27 Commits

Author SHA1 Message Date
Soreine
4374eb9b33 Document wrapBlockByKey 2016-10-27 15:13:30 +02:00
Samy Pesse
6d2b70c750 Fix merge in "docs/reference/models/transform.md" 2016-10-25 22:59:08 +02:00
Samy Pesse
4c9e138d04 Merge remote-tracking branch 'slate/master' into schema-normalize 2016-10-25 21:55:53 +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
0f80230776 Remove transform "unwrapInlineByKey" done by another PR 2016-10-19 12:01:52 +02:00
Samy Pesse
fc318ec78b Add transform .unwrapInlineByKey with test and documentation 2016-10-17 01:14:47 +02:00
Nicolas Gaborit
f87e4dc72b Remove old snapshot parameter for Transform.apply (#361) 2016-10-04 12:19:31 -07:00
Ian Storm Taylor
88f6ee5e12 fix typo in transform docs 2016-09-13 12:38:14 -07:00
Ian Storm Taylor
3ef82a3fbc update docs for new node-level transforms 2016-09-13 11:49:59 -07:00
Ian Storm Taylor
a90d522ae5 update docs 2016-08-25 22:55:03 -04:00
Ian Storm Taylor
90d4eced95 add wrapTextAtRange tests, cleanup wrapText style and backwards handling 2016-08-09 09:32:46 -07:00
Samy Pessé
17f703cecb WIP: Add transform wrapText (#227)
* Add basic implementation of wrapText

* Default suffix for wrapText to prefix

* Add more tests for afterText

* Add tests "whole-block" and "empty-block" for wrapText

* Add tests for across-blocks and across-inlines

* Preserve selection on wrapText

* Remove comment about cursor position

* Document transformation "wratTextAtRange"
2016-08-09 09:11:21 -07:00
Ian Storm Taylor
f17629a42d fix documentation references for "fragments", closes #228 2016-08-07 13:13:06 -07:00
Ian Storm Taylor
c4e1e475eb add insertInline with tests 2016-08-01 18:53:05 -07:00
Ian Storm Taylor
789c4b3002 fix void leaf selection handling 2016-08-01 18:26:27 -07:00
Ian Storm Taylor
de9a32b97b update reference 2016-07-28 16:35:47 -07:00
Ian Storm Taylor
a892c6b800 change wrapping transform arguments for consistency 2016-07-28 16:24:24 -07:00
Samy Pessé
d7a839e89d undo and redo transform does not return Transform (#189) 2016-07-28 09:02:19 -07:00
Ian Storm Taylor
81c956228b more work on draggable nodes 2016-07-24 18:57:09 -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
0ebe5b4b64 add toggleMark and toggleMarkAtRange transforms 2016-07-21 11:59:21 -07:00
Ian Storm Taylor
bd200cf4b8 update state.moveTo() reference 2016-07-20 14:50:55 -07:00
Ian Storm Taylor
1d47e0729e update transform reference 2016-07-18 16:57:15 -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
510eb63d8d fixes 2016-07-12 21:14:21 -07:00
Ian Storm Taylor
f960bf588c more docs 2016-07-12 21:08:40 -07:00