1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-23 16:55:23 +01:00

64 Commits

Author SHA1 Message Date
Ian Storm Taylor
bf99d48ccb update node and utils docs 2016-11-28 10:53:19 -08:00
Ian Storm Taylor
d925940b0d add utils reference 2016-11-28 10:50:34 -08:00
Soreine
944adc27fe Remove needless transform = transform.method() 2016-11-10 15:18:52 +01:00
Samy Pessé
4d33991358 Add method createFromRanges to Text 2016-11-09 10:26:33 +01:00
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
Andrew Cobby
98d663be5d Fix broken link to Block in docs (#278) 2016-08-31 19:35:18 -07:00
Ian Storm Taylor
a90d522ae5 update docs 2016-08-25 22:55:03 -04:00
Ian Storm Taylor
e3e9afba43 update walkthroughs and history 2016-08-14 18:25:12 -07:00
Ian Storm Taylor
5091587814 simplify schema rules, update docs 2016-08-14 15:51:07 -07:00
Ian Storm Taylor
06af3de5e5 start adding docs 2016-08-14 14:38:27 -07: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
Ian Storm Taylor
c1f4bce3b8 change hasUndo and hasRedo to hasUndos and hasRedos 2016-07-28 11:13:12 -07:00
Samy Pessé
b2c1b844af Add properties hasUndo and hasRedo to State (#193)
* Add properties hasUndo and hasRedo to State

* Fix description fo hadRedo
2016-07-28 11:11:42 -07:00
Samy Pessé
e6690537fb Fix signature of Selection.has{Edge}In in documentation (#190) 2016-07-28 09:02:58 -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
c7fac3456e remove non-transform transforming methods from reference 2016-07-24 18:03:36 -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
joehua87
12f4a8e692 Update state.md (#164)
{edge}Offset is Number
2016-07-22 22:21:02 -07:00
joehua87
1f0532d306 typeof key is string (not Key) (#165) 2016-07-22 22:20:40 -07:00
Ian Storm Taylor
53c57c40d9 fix typo in selection reference 2016-07-21 16:39:45 -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
Somasundaram Ayyappan
b5880e607f Doc fixes (#102)
* replace block api refs with inline

* fix inline link refs in static method sections

* link fixes in few more files
2016-07-17 14:00:31 -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
Ian Storm Taylor
f8946fb876 add more reference docs 2016-07-12 17:54:11 -07:00
Ian Storm Taylor
cf72a88bdb add document, inline and node reference 2016-07-12 17:31:45 -07:00
Ian Storm Taylor
f067ffe75c add block reference 2016-07-12 17:02:42 -07:00
Ian Storm Taylor
48be173b7b update reference 2016-07-12 11:40:15 -07:00
Ian Storm Taylor
32e1f21a0b update reference 2016-07-12 11:32:56 -07:00
Ian Storm Taylor
e95195501a update reference 2016-07-12 11:30:28 -07:00
Ian Storm Taylor
ceadbd1627 update reference 2016-07-12 11:28:41 -07:00