1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-01 12:02:25 +02:00

1772 Commits

Author SHA1 Message Date
Ian Storm Taylor
26777b43a5 fix error when dragging void nodes without selection, closes #757 2017-04-28 13:17:00 -07:00
Ian Storm Taylor
17ea3ed349 fix to depend on prop-types for react 15.5 2017-04-28 13:04:00 -07:00
Ian Storm Taylor
bdc6d0f93b Merge branch 'master' of github.com:ianstormtaylor/slate 2017-04-28 12:56:50 -07:00
Ian Storm Taylor
2eea02a55c fix to maintain focus on switching tabs, closes #756 2017-04-28 12:55:48 -07:00
Ian Storm Taylor
e855ed5aad update issue template 2017-04-28 12:20:47 -07:00
Samy Pessé
79275d47b6 Add "data-key" to root div for the whole document (#759)
* Add "data-key" to div for the whole document

* Fix unit tests for rendering
2017-04-28 12:17:23 -07:00
Ian Storm Taylor
4cd1ddebd0 add an issue template 2017-04-28 12:14:34 -07:00
Max
f787b68a36 add note to document documentation (#755)
can perhaps spare some time from someone else wondering about this: https://github.com/ianstormtaylor/slate/issues/746
2017-04-25 10:52:37 -07:00
Rocky Meza
3ca977e26a Fix typo in plugin.md (#753) 2017-04-24 18:23:53 -07:00
Ian Storm Taylor
8cb3379eb8 update readme 2017-04-24 13:33:53 -07:00
Ian Storm Taylor
1471e0846f cleanup readme, move comparisons to external doc, closes #727 2017-04-24 13:17:18 -07:00
Ian Storm Taylor
8e37ea760d add yarn.lock file 2017-04-24 13:11:31 -07:00
Ian Storm Taylor
1241b5c4b5 fix benchmarks, closes #686 2017-04-24 13:06:50 -07:00
Ian Storm Taylor
a98b687aa5 disable grammarly, closes #733 2017-04-24 12:51:54 -07:00
Conor Cussell
f31220c35b Add a badge for gzip size (#748) 2017-04-24 10:17:23 -07:00
jatins
310b281469 fix example links in Readme (#745) 2017-04-23 12:02:57 -07:00
Anuj
51f1a2f9d9 Clarify instructions for plugin preventing default behavior (#740) 2017-04-21 21:17:04 -07:00
eden lane
eb03bd8ec4 Changed hotkey for code block in the walkthrough due to lack of support hotkey ⌘-C in Chrome on Mac (#741) 2017-04-21 21:14:04 -07:00
Ian Storm Taylor
cd8ed4c38c 0.19.20 v0.19.20 2017-04-19 18:38:55 -07:00
Per-Kristian Nordnes
7d0f7d0069 Revert "Remove space after first char when copying from Slate (#716)" (#736)
This reverts commit 3e573453a8c5d92963d3f290fb7266f66e2a6b78.
2017-04-19 18:36:16 -07:00
Ian Storm Taylor
1421f28f87 0.19.19 v0.19.19 2017-04-19 09:18:03 -07:00
Craig Michael Thompson
1e2bd62d38 feat: Add extendSelection utility (#730)
* feat: Add extendSelection util

* Shims the native `Selection.extend` method if not available with a simplistic shim by @tyler-johnson
* Fixes IE10+ as they don't support the native method

* Linting fixes

* Linting fix
2017-04-19 09:14:08 -07:00
Craig Michael Thompson
c36537c6e8 feat: Add findClosestNode utility (#728)
* feat: Add findClosestNode utlity

* A light shim utility that wraps the functionality of the native `closest` method
* IE11 and Edge don't support the `closest` method on nodes
* For those browsers that don't support it, we shim it with a shim taken from MDN

* Linting fixes

* Remove extra semi-colons as per lint guidelines
2017-04-19 09:05:57 -07:00
Craig Michael Thompson
f39c4327fe feat: Add ES6 polyfill to examples page (#729)
* feat: Add ES6 polyfill to examples page

* Fixes issue with IE11 simply not displaying anything on load due to missing `Symbol` shim

* Move script to the bottom before build.prod.js file
2017-04-19 09:03:02 -07:00
Ian Storm Taylor
6f9e8bc5ec update gitbook intro 2017-04-16 16:22:03 -07:00
Ian Storm Taylor
5ce7f3d496 fix examples links 2017-04-16 16:13:48 -07:00
Ian Storm Taylor
3ad8c9953f 0.19.18 v0.19.18 2017-04-16 15:34:46 -07:00
Ian Storm Taylor
a481581803 0.19.17 v0.19.17 2017-04-11 21:45:53 -07:00
Ian Storm Taylor
2b75499e60 fix block warning for void nodes 2017-04-11 21:43:21 -07:00
Victor Pontis
2f296972c0 Keep selection while applying Transform.unwrapNodeByKey (#717)
Transforms should be applied in an order so that the selection is
preserved. This replaces "remove --> insert" with "move --> remove".

Close #670
2017-04-11 21:37:29 -07:00
Victor Pontis
3e573453a8 Remove space after first char when copying from Slate (#716)
Right now if you copy "This thing" from Slate and paste
into a plain text app you will get "T his thing" because
Slate is making the first character a data holding span.

This diff makes the data containing span empty to eliminate
this extra space.

Closes #562
2017-04-11 21:37:08 -07:00
Ian Storm Taylor
5c7e31b332 Update .npmignore 2017-04-11 16:41:10 -07:00
Ian Storm Taylor
50593f9335 speed up decorator examples 2017-04-06 11:21:41 -07:00
Ian Storm Taylor
d24dffc390 0.19.16 v0.19.16 2017-04-03 09:34:05 -07:00
Aliaksei Simanchyk
7794ebe3be use refs for div component instead findDOMNode (#708) 2017-04-03 09:30:20 -07:00
Aliaksei Simanchyk
affb2eb56a Fix forgotten props 'block' for Leaf (#707) 2017-04-03 09:26:57 -07:00
Ian Storm Taylor
7b4beffabf 0.19.15 v0.19.15 2017-04-02 15:48:29 -07:00
Ian Storm Taylor
f81e52a51e change normalize logic to use mutable objects for performance 2017-04-02 15:45:48 -07:00
Ian Storm Taylor
1fb04f663d 0.19.14 v0.19.14 2017-04-02 15:04:36 -07:00
Ian Storm Taylor
059ee96db8 a handful of performance improvements (#705)
* update large example

* pass block down to <Text> for performance, closes #700

* add get-ranges benchmark

* optimize getRanges(), closes #699

* add serialization benchmarks

* optimize Raw.deserializeRanges() by computing marks once, closes #701

* change .merge calls to .set for performance

* change updateDescendant() to use getAncestors() for memoization

* change getPath() to use getAncestors() for memoization

* switch getTexts() and friends to use arrays while iterating

* rename split-block benchmark

* update benchmark compare script
2017-04-02 14:57:36 -07:00
Ian Storm Taylor
8687fac1a2 add more to docs intro 2017-03-31 17:18:13 -07:00
Ian Storm Taylor
ea4ecb2476 0.19.13 v0.19.13 2017-03-30 14:15:06 -04:00
Ian Storm Taylor
2743348d65 add markdown example, fix selection handling with decorators 2017-03-30 14:12:56 -04:00
Ian Storm Taylor
1ec92f2414 0.19.12 v0.19.12 2017-03-30 12:58:30 -04:00
Ian Storm Taylor
8af2026371 fix re-rendering of last text nodes, closes #682 2017-03-30 12:55:15 -04:00
Ian Storm Taylor
4e81f4a0fd 0.19.11 v0.19.11 2017-03-30 12:46:53 -04:00
Ian Storm Taylor
b0adb9252c cleanup 2017-03-30 12:44:55 -04:00
Ian Storm Taylor
ef81dc856a fix check-lists example 2017-03-30 12:30:33 -04:00
AlbertHilb
f1b147860b Rewrite CheckListItem component. Only the area we really want to be editable (#696)
must lie inside contenteditable elements.
2017-03-30 10:35:01 -04:00
AlbertHilb
83a94f0737 When editor contains nested editable elements, in some situations, (#693)
the focus goes to those elements. In firefox, this causes issues
with keyboard navigation and therefore it must be prevented.
2017-03-30 10:23:56 -04:00