1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-02 22:28:46 +01:00

1744 Commits

Author SHA1 Message Date
AlbertHilb
e396941963 moveNode operation fix (#782)
* Fix `moveNode` operation.
When `parent` is an ancestor of `target` and the index of `node` is
less than the index of the ancestor of `target` with the same depth
of `node`, removing `node` changes the path to `target`.
As consequence of that, `newPath` needs to be adjusted.

* Add test.

* Improve code.
2017-05-04 17:14:24 -07:00
Ian Storm Taylor
526d162002 fix large document example imports 2017-05-04 17:14:09 -07:00
Ian Storm Taylor
13a99a9b73 refactor examples, upgrade dependencies 2017-05-04 16:48:42 -07:00
Ian Storm Taylor
a3f7f9bd02 v0.19.25 v0.19.25 2017-05-04 15:57:03 -07:00
Ian Storm Taylor
8208633091 fix void copying to attach to the right dom element 2017-05-04 15:55:24 -07:00
Ian Storm Taylor
75c76a6dea 0.19.24 v0.19.24 2017-05-04 15:30:58 -07:00
Ian Storm Taylor
c9644a5a53 0.19.23 v0.19.23 2017-05-04 15:14:17 -07:00
Anuj
7b358b4ced Add firstOnly prop to Placeholder (#765)
* Adding firstOnly prop to Placeholder

Partly addresses #737

* Updating placeholder logic to check for parent only if firstOnly is set to true

* removing extra newlines

* simplifying shouldComponentUpdate condition
2017-05-04 15:11:55 -07:00
Ian Storm Taylor
503fde52b2 rename issue template 2017-05-04 14:47:35 -07:00
Ian Storm Taylor
94e0e6254a Copy void (#788)
* Fix getFragmentAtRange to not return early when selection is in void node or collapsed

* Detecting when cut or copy is made in a void node, and not returning early

* Checking if text exists before using it for cut/copy

* Moving inVoidNode check to onCutOrCopy

as per @ianstormtaylor note.

* If/else for dom operations when copying text vs void node

* Adding fragment span to the contents

* more work on copy-pasting void nodes
2017-05-04 14:42:47 -07:00
Anuj
a338b36c76 Address doc suggestion in #644 (#760)
* Address doc suggestion in #644

* Move doc update to FAQ instead
2017-05-04 09:58:46 -07:00
Anuj
9250baafe6 Clarifying insertTextByKey description (#778)
As per #775
2017-05-04 05:58:21 -07:00
Anuj
fb6f3d5b61 Documenting node's 'getFirstText' & 'getLastText' (#779)
Noticed a couple of useful functions I found useful that weren't documented. Also, fixed a couple of broken links.
2017-05-04 05:57:52 -07:00
Ian Storm Taylor
5258b38508 0.19.22 v0.19.22 2017-05-03 19:45:52 -07:00
Ian Storm Taylor
29c67fd45f fix selection handling for changing tabs, and inside embedded inputs, closes #749 2017-05-03 19:44:20 -07:00
Ian Storm Taylor
0fcb953015 fix to restrict window blur/focus handling, closes #773 2017-05-03 18:48:42 -07:00
Ian Storm Taylor
f212ea3616 Merge branch 'master' of github.com:ianstormtaylor/slate 2017-05-03 18:33:11 -07:00
Ian Storm Taylor
2e3b294fd3 remove warn throwing since console.warn includes callsites now 2017-05-03 18:33:05 -07:00
Brian Kabiro
cb98408115 Update defining-custom-block-nodes.md (#776) 2017-05-03 16:51:13 -07:00
Ian Storm Taylor
460498b5dd 0.19.21 v0.19.21 2017-05-01 11:23:49 -07:00
Ian Storm Taylor
78fefa1115 update table example to make scope clearer 2017-05-01 11:18:35 -07:00
tashburn
9cf24b6081 Fixed the link to comparisons, which was broken (#769) 2017-04-30 21:26:56 -07:00
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