1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-22 14:21:54 +02:00

1373 Commits

Author SHA1 Message Date
Per-Kristian Nordnes
add174ef37 Allow setting a defaultBlockType as object for HTML serializer (#595)
* Allow setting a defaultBlockType as object for HTML serializer

* Add test for html deserializer default block as object

* Code enhancement/compacting
2017-02-13 18:16:08 -08:00
Ian Storm Taylor
0430efcdc8 0.16.16 v0.16.16 2017-02-13 17:19:38 -08:00
Ian Storm Taylor
aa1c3acd51 update dev deps for react 15.4 2017-02-13 17:17:16 -08:00
Ian Storm Taylor
386f750ab6 0.16.15 v0.16.15 2017-02-13 17:03:50 -08:00
Ian Storm Taylor
b5e1d165f1 Merge branch 'master' of github.com:ianstormtaylor/slate 2017-02-13 17:01:27 -08:00
Ian Storm Taylor
e4bca60752 fix to re-resolve plugins when placeholder props change, closes #601 2017-02-13 16:54:19 -08:00
Nicolas Gaborit
0c18052404 Eliminate duplicates in getBlocksAtRange (#600) 2017-02-13 16:31:16 -08:00
Kenneth Truong
8214641e75 Fix case in spellCheck (#592) 2017-02-13 16:30:48 -08:00
Stan Chang Khin Boon
3a23c21848 Add props “autoCorrect” to editor and content. (#596)
This allow user to turn off predictive text input on iOS thus mitigating #540…
2017-02-13 16:30:20 -08:00
Ian Storm Taylor
e1ea15a86f update the react-frame-aware-selection-plugin 2017-02-13 16:28:53 -08:00
Nicolas Gaborit
17a014deac Fix deleteAtRange with nested blocks (#594)
* Add failing test for backspace in a nested block

* Fix deleteAtRange

* Move to test to delete-at-range

* Use and improve getHighestOnlyChildParent
2017-02-13 14:27:59 -08:00
Ian Storm Taylor
7517dff092 0.16.14 v0.16.14 2017-02-07 12:28:29 -08:00
Ian Storm Taylor
303b107ca2 Merge branch 'fix-word-char-deletes' 2017-02-07 12:26:04 -08:00
Ian Storm Taylor
cab29ca19c fix deleteing by word or character 2017-02-07 12:25:53 -08:00
Ian Storm Taylor
30c6a0126b . 2017-02-07 12:25:43 -08:00
Ian Storm Taylor
40478a3df7 0.16.13 v0.16.13 2017-02-07 10:10:22 -08:00
Ian Storm Taylor
99bae0e892 fix tests 2017-02-07 10:08:20 -08:00
Ian Storm Taylor
a836a34786 update void spacer to hide the cursor better in inlines 2017-02-07 10:04:59 -08:00
Raffaele De Feo
4f439ab3ca Set the display ccs property of the void inline wrappers to inline-block.
Update tests.
2017-02-07 18:08:14 +01:00
Ian Storm Taylor
d44f7e2122 0.16.12 v0.16.12 2017-02-06 17:31:06 -08:00
Ian Storm Taylor
a7f6584179 added toRaw option to Html and Plain serializers, fixes #583 #584 2017-02-06 17:28:46 -08:00
Anuj
44cef94b04 Fixing Readme and API docs (#579)
* Fix typo

just a minor typo in the docs!

* Fix typo in API docs

* Update focus-blur example readme to reflect the correct example

* Remove extra newline

* Correct Readme on the plugins example as well

* Correct readme for RTL example

* Fix own typo.

* Adding a Readme for the tables example
2017-02-03 08:21:32 -08:00
Evgeniy Kuvshinov
e4589a04ab Fix deleteCharBackwardAtRange
When we have nested inlines in startBlock, startOffset will point to the wrong character. So, i think that using startText will be correct here.
2017-02-02 01:22:38 +05:00
Ian Storm Taylor
e1b7a71583 0.16.11 v0.16.11 2017-01-31 10:25:45 -08:00
AlbertHilb
ca1e0d8c6d Add data property to document. (#572)
* Add data property to `document`.
Add `setDocumentDataOperation' to set document data.
Change `Raw` serializer to take into account the document `data` property.
Update docs and tests.

* Make `setNode` operation working with document node.
Rewrite `setDocumentdataOperation` using `setNode`.

* Make 'setNodeByKey' working also with document node.

* Get rid of `setDocumentDataOperation`.
2017-01-31 10:23:04 -08:00
Josh Duff
9adfc63a36 Removing unnecessary word (#571) 2017-01-29 19:28:57 -08:00
Josh Duff
62c16e9ab8 Add significant whitespace to fix headers on npm (#569) 2017-01-26 15:22:11 -08:00
Anuj
4fd1905d00 Fix typo (#564)
just a minor typo in the docs!
2017-01-25 08:25:45 -08:00
Ian Storm Taylor
cd885fd070 0.16.10 v0.16.10 2017-01-18 17:34:00 -08:00
Samy Pessé
98995e7c08 Add props "tabIndex" and "role" (#552)
* Add prop "tabIndex" to editor

* Add prop "role"

* Typo

* Adapt rendering tests
2017-01-18 17:29:37 -08:00
Ian Storm Taylor
ef238b6189 0.16.9 v0.16.9 2016-12-31 20:12:28 -05:00
AlbertHilb
31f6f088a9 Update nodes on readOnly editor property change (#544)
* Propagate `readOnly` editor property to node components.
Update nodes when `readOnly` changes.

* Add a comment describing the reason of the check.

* Move down the `readOnly` status change check.
2016-12-31 17:08:46 -08:00
Sunny Hirai
189af27ec7 Updated examples to add GitHub and Docs link + some styling. (#531) 2016-12-25 21:18:39 -08:00
Sunny Hirai
dbef33a58f Reloading the page now also reloads the CSS. (#532) 2016-12-25 21:18:16 -08:00
Sunny Hirai
5cf11f7df4 Added state as a property to Transform in the documentation (#526)
* Updates docs/reference/models/transform.md

Auto commit by GitBook Editor

* Updates docs/reference/models/transform.md

Auto commit by GitBook Editor
2016-12-24 23:54:54 -08:00
Sunny Hirai
d56c0d8d95 Improve examples so that code changes propagate to browser (#527)
* Updated examples/dev.html so that the script would reload on a page refresh

* Made watch:examples verbose so we know when watchify has finished its work.
2016-12-16 18:19:48 -08:00
Sunny Hirai
d3095145da Updates docs/reference/models/transform.md (#525)
Auto commit by GitBook Editor
2016-12-16 18:14:36 -08:00
Ian Storm Taylor
1dbfea4499 0.16.8 v0.16.8 2016-12-12 12:06:33 -08:00
Ian Storm Taylor
98dade9ac7 change offset key logic to never throw when not found 2016-12-12 12:04:22 -08:00
Ian Storm Taylor
4e177e4092 refactor data transfer to be less complex, closes #498 (#519) 2016-12-10 12:38:45 -08:00
Ian Storm Taylor
a5dc3b7c8d 0.16.7 v0.16.7 2016-12-09 18:12:08 -08:00
Ian Storm Taylor
59b31fb9b3 cleanup lots of selection code, get tests passing again 2016-12-09 18:09:37 -08:00
Ian Storm Taylor
36bd59b839 fix selection methods resolution of isBackward, closes #512 2016-12-09 16:12:17 -08:00
Ian Storm Taylor
9dde2e56f1 0.16.6 v0.16.6 2016-12-09 15:20:16 -08:00
Ian Storm Taylor
4b64515a1e update normalization logic to account for new children 2016-12-09 15:17:38 -08:00
Ian Storm Taylor
78a83faf58 0.16.5 v0.16.5 2016-12-09 12:46:35 -08:00
Ian Storm Taylor
71befd0202 add on-select behavior test 2016-12-09 12:44:12 -08:00
Ian Storm Taylor
ad2642a3b5 Add the Stack concept (#513)
* trying to get testing in browser to work

* add the "stack" concept

* remove old things from package.json

* minor fixes
2016-12-09 12:15:36 -08:00
Ian Storm Taylor
e080e5a998 0.16.4 v0.16.4 2016-12-08 10:40:11 -08:00
Nicolas Gaborit
ed0395999c Add unwrapNodeByKey (#509)
* Add separate splitNodeOperation in two different op

* Add transform unwrapNodeByKey

* Add tests for unwrapNodeByKey

* Add test for undo of unwrapNodeByKey

* Support normalize option

* Handle last/first sibling case

* Document new unwrapNodeByKey transform
2016-12-08 10:37:34 -08:00