1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-03-06 13:59:47 +01:00

1444 Commits

Author SHA1 Message Date
Ian Storm Taylor
eb4854006a add ability to not normalize on state creation 2017-03-05 16:54:26 -08:00
Anuj
cc26e6c60a Clarify usage of plugin.render (#649) 2017-03-05 00:32:44 -08:00
Ian Storm Taylor
8f3889199a 0.19.2 v0.19.2 2017-03-04 18:29:11 -08:00
Aliaksei Simanchyk
698a88a24f fix getting index for inline node in unwrapInlineAtRange, fixes #620 (#648) 2017-03-04 18:26:35 -08:00
Ian Storm Taylor
54ecb63f9d 0.19.1 v0.19.1 2017-03-03 13:17:24 -08:00
Ian Storm Taylor
5d285164b6 remove renderPortal from the docs, prepping for removal 2017-03-03 13:15:04 -08:00
Ian Storm Taylor
1d8aa81460 fix how we check if running in browser, fixes #609 2017-03-03 13:11:38 -08:00
Ian Storm Taylor
26a67c50c5 fix getPoint in case of switching between editors, closes #570 2017-03-03 13:04:06 -08:00
Ian Storm Taylor
99a8753e92 0.19.0 v0.19.0 2017-03-03 12:52:28 -08:00
Ian Storm Taylor
c316a4b60a refactor node methods, memoize more, update history 2017-03-03 12:50:17 -08:00
Anuj
5c3338782d Methods missed in upgrade 0.17 (#645) 2017-03-02 22:27:23 -08:00
Ian Storm Taylor
b8543b537c 0.18.0 v0.18.0 2017-03-02 18:21:54 -08:00
Ian Storm Taylor
2a5d3ee556 rename plugin.render to renderPortal, and add plugin.render 2017-03-02 18:19:39 -08:00
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