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

1431 Commits

Author SHA1 Message Date
Kyle Kelley
fa4f9dff6c docs: Delete dangling } (#642) 2017-03-02 17:18:16 -08:00
Anuj
1d8c814a62 Fix typo: cummulative -> cumulative (#643) 2017-03-02 17:17:55 -08:00
Victor Pontis
16d8496760 Fix typo on installing Slate documentation (#638) 2017-03-01 11:40:17 -08:00
Ian Storm Taylor
c518d55aa3 fix moveTo, and add select and deselect to docs, fixes #640 2017-03-01 11:39:05 -08:00
Ian Storm Taylor
647723bb26 0.17.4 v0.17.4 2017-02-28 19:10:14 -08:00
Ian Storm Taylor
d70f35f537 change selectAll to not focus, and add docs 2017-02-28 19:07:46 -08:00
Victor Pontis
77f939d6c8 Add functionality and test-case for selectAll (#637)
* Add functionality and test-case for selectAll

* Update to use moveToRange
2017-02-28 19:03:12 -08:00
Ian Storm Taylor
d426874b57 0.17.3 v0.17.3 2017-02-28 15:28:08 -08:00
Ian Storm Taylor
1511d9f203 fix caching logic for onDocumentChange and onSelectionChange, fixes #614 #553 #538 2017-02-28 15:25:55 -08:00
Ian Storm Taylor
93c34f6045 0.17.2 v0.17.2 2017-02-28 14:54:10 -08:00
Ian Storm Taylor
d7962240e1 fix scrolling to selection 2017-02-28 14:51:51 -08:00
Ian Storm Taylor
7a6bd25aa9 update readme 2017-02-28 11:47:14 -08:00
Ian Storm Taylor
962961a974 add more Gitbook plugins to readme 2017-02-28 11:45:49 -08:00
Ian Storm Taylor
92ef585d38 update auto-replace in the readme 2017-02-28 11:43:55 -08:00
Ian Storm Taylor
d8f3e706f5 fix linting 2017-02-28 09:56:06 -08:00
Ian Storm Taylor
37d295c1e6 0.17.1 v0.17.1 2017-02-28 09:13:23 -08:00
Ian Storm Taylor
6a92f9384d add autoFocus support 2017-02-28 09:10:59 -08:00
Ian Storm Taylor
84ce16b43c 0.17.0 v0.17.0 2017-02-27 13:41:35 -08:00
Ian Storm Taylor
414188b76d update docs 2017-02-27 13:05:41 -08:00
Ian Storm Taylor
7b2ff734dd update history 2017-02-27 13:01:49 -08:00
Ian Storm Taylor
faa12473ef update history 2017-02-27 12:58:02 -08:00
Ian Storm Taylor
64b1e542b8 refactor the Selection model, deprecating old methods (#631)
* refactor Selection, deprecating old methods

* fix a few more things

* introduce an alternative for moveToOffsets

* add edge methods for move{start/end}OffsetTo

* fix selection return value

* fix deprecation warnings

* refactor transforms to make auto-generating easier

* refactor and deprecate selection transforms

* remove deprecation warnings from tests

* fix deprecation warnings in examples
2017-02-27 12:55:13 -08:00
Ian Storm Taylor
208fcb59dd 0.16.28 v0.16.28 2017-02-25 14:00:50 -08:00
Ian Storm Taylor
dfe403e96b fix content proptype 2017-02-25 13:58:37 -08:00
Ian Storm Taylor
9f5a0c153c add release badge to readme 2017-02-25 13:48:06 -08:00
Ian Storm Taylor
f2ac9fa056 0.16.27 v0.16.27 2017-02-25 13:42:52 -08:00
Ian Storm Taylor
2ebfb24234 first stab at plugin rendering (#629) 2017-02-25 13:40:22 -08:00
Ian Storm Taylor
8f92ec6a6d fix linting 2017-02-25 12:55:31 -08:00
Per-Kristian Nordnes
c456c9dbe1 Image example: fix delete bug. Fixes #625 (#628)
As void-nodes now can be deleted, use a schema rule to normalize the document, and insert a paragraph when empty. Delete old "onDocumentChange" handler.
2017-02-25 12:50:52 -08:00
Ian Storm Taylor
c3578d12ad tighten linting rules 2017-02-25 10:13:21 -08:00
Ian Storm Taylor
e0f59970a0 0.16.26 v0.16.26 2017-02-24 17:23:28 -08:00
Per-Kristian Nordnes
0cfd106a2d Fix bug where last char of inline node couldn't be selected with keyboard (#626)
Fix bug where first char of inline node couldn't be selected with keyboard
2017-02-24 17:19:29 -08:00
Ian Storm Taylor
4f04d48cdc 0.16.25 v0.16.25 2017-02-23 18:37:15 -08:00
Kenneth Truong
b1ef5bcf61 Fix issue with scrollTo (#623)
I realized I made a mistake in the scrollWindow function I was calculating the scrollBy position incorrectly. I decided to just switch to scrollTo instead of scrollBy

Also I was getting an issue where the `getBoundingClientRect().bottom` of one of my wrapper was incorrect when the height changed via newline or deletion. I'm not entirely sure why but I noticed that if I used wrapperRect.top + wrapper.offsetHeight it gave the correct bottom so I swapped to use that instead. Let me know if there's any issue with these changes.

Also I'm wondering is there anyway to add tests for these changes? I'm not too familiar with testing for scroll
2017-02-23 18:34:46 -08:00
Ian Storm Taylor
d1aec53326 0.16.24 v0.16.24 2017-02-23 15:08:47 -08:00
Per-Kristian Nordnes
86cbb0d49a Allow document to have no nodes when deleting a single void-block. Partially fixes #505 (#622) 2017-02-23 15:06:20 -08:00
Ian Storm Taylor
86f4844d5d 0.16.23 v0.16.23 2017-02-23 15:04:31 -08:00
Kenneth Truong
92194f13e1 Fix jumpy scroll behaviour (#607)
* Fix jumpy scroll behaviour

I'm not sure if this is the best fix for the issue (I would have liked it to allow the browser to deal with moving the cursor into view.) but for now I think this is better than what it was before. I tried to imitate what chrome was doing when the cursor was out of view. (Except when it was partially in view but I decided to just keep it simple) 

This basically checks the cursor's position and if it isn't in view it'll move the cursor into the middle of the view. 

Fixes #279
Fixes #589

* Subtract Height
2017-02-23 15:02:10 -08:00
Ian Storm Taylor
c0daa27500 0.16.22 v0.16.22 2017-02-23 08:54:32 -08:00
Per-Kristian Nordnes
a67a93dd42 Fix behaviour where deleteBackward/Forward on empty block deleted the void block above/below (#618) 2017-02-23 08:51:59 -08:00
Anuj
2bd5bc3fa7 Fix typo: 'Charaters' => 'Characters' (#619) 2017-02-22 19:42:18 -08:00
Ian Storm Taylor
9b5581caa9 0.16.21 v0.16.21 2017-02-22 17:50:35 -08:00
Ian Storm Taylor
bf4e99f200 fix moveToRangeOf, collapseToStart/EndOf 2017-02-22 17:48:16 -08:00
Ian Storm Taylor
469a5fed69 0.16.20 v0.16.20 2017-02-22 15:28:29 -08:00
Ian Storm Taylor
8294ec94b7 pass in context properties to mark components, fixes #617 2017-02-22 15:26:23 -08:00
Ian Storm Taylor
9d92f2424d 0.16.19 v0.16.19 2017-02-21 16:00:27 -08:00
Per-Kristian Nordnes
6804ec1ad4 Selection: fix deprecated code call (#613) 2017-02-21 15:30:04 -08:00
Ian Storm Taylor
f8fe5aabe9 0.16.18 v0.16.18 2017-02-17 10:59:14 -08:00
Ian Storm Taylor
fef384bd90 Merge branch 'master' of github.com:ianstormtaylor/slate 2017-02-17 10:56:25 -08:00
Ian Storm Taylor
259e1515c9 remove the preventDefault call on void nodes 2017-02-17 10:56:17 -08:00