1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-03-19 04:39:46 +01:00

1772 Commits

Author SHA1 Message Date
pa-nam
b967cf7c79 Clear scroll timer when component unmount (#867) 2017-06-10 13:41:27 -04:00
Samy Pessé
57da8da4b4 Fix selection after transform.wrapInline (#872)
* Add failing test for wrapInline

* Adapt tests for wrap-twice and whole-block

* Adapt transform to move selection correctly

* Fix lint errors

* Use keys in yaml
2017-06-10 13:34:57 -04:00
Samy Pessé
54d204b87e Move condition about onBeforeChange (#878) 2017-06-10 13:33:23 -04:00
Ian Storm Taylor
b4883ea552 0.20.2 v0.20.2 2017-05-30 13:17:47 -07:00
Leon Koole
b6541854fa Fix missing isAltKey (#855) 2017-05-30 13:15:11 -07:00
pa-nam
890d790d42 Wrap scrolling logic in setTimeout (#847)
The native selection will be updated after componentDidMount or componentDidUpdate.
Use setTimeout to queue scrolling to the last when the native selection has been updated to the correct value.
2017-05-30 13:13:21 -07:00
Kelly Joseph Price
53542cb55b Ignore comments in Html deserializer (#856) 2017-05-30 13:08:51 -07:00
Anuj
c26f2dc71b Documenting node's getFurther* functions (#845)
I remembered coming across these functions and then didn't find them in the docs. So, here they are now!
2017-05-30 12:07:24 -07:00
Mike Hearn
4013d0b18a Minor update to Saving to Database doc (#831) 2017-05-23 18:36:13 -07:00
Asaf Katz
06c54bd991 Docs improvements suggestions (#801)
* Fix typo

* Make it clearer that addMark has changed too
2017-05-21 10:36:23 -07:00
Alex Zajac
da1210da0f Local examples url update (#822)
* Update url when testing locally

When attempting to mess around locally I could never get anything to update. Sure enough I was looking in the wrong place and had missed the `/dev.html` on the end of my url.

Here's to hoping no one else struggles with this again.

* Update Readme.md
2017-05-20 10:58:10 -07:00
Ian Storm Taylor
579e12e2cb 0.20.1 v0.20.1 2017-05-17 10:24:00 -07:00
Ian Storm Taylor
ac07cfd510 fix html serializer to not deserialize children when null 2017-05-17 10:21:43 -07:00
Ian Storm Taylor
190071c758 0.20.0 v0.20.0 2017-05-17 09:16:07 -07:00
Ian Storm Taylor
c260725e65 add support for skipping elements in html serializer, closes #821 2017-05-17 09:14:33 -07:00
Ian Storm Taylor
e363f88b71 0.19.30 v0.19.30 2017-05-09 22:30:06 -07:00
Ian Storm Taylor
77277cccef Merge branch 'master' of github.com:ianstormtaylor/slate 2017-05-09 22:28:43 -07:00
Ian Storm Taylor
12bbb630e1 fix *ByTypeAsArray node methods to always return arrays 2017-05-09 22:28:39 -07:00
Dae-Ho Kim
873f1b1124 Fix json (#798)
Remove comma
2017-05-06 09:19:27 -07:00
Ian Storm Taylor
cb03f02d68 update readme 2017-05-05 18:41:21 -07:00
Ian Storm Taylor
0a9ef10664 0.19.29 v0.19.29 2017-05-05 17:46:38 -07:00
Ian Storm Taylor
7a5dfe6fda allow memoization without arguments for faster lookups (#796) 2017-05-05 17:44:53 -07:00
Ian Storm Taylor
c7cc980732 0.19.28 v0.19.28 2017-05-05 11:53:07 -07:00
Max Stoiber
142ba2ba18 Add tests for plugins (#792)
* Add tests for plugins

The first test fails because the rules property of plugins doesn't work
as expected.

* Fix plugins tes
2017-05-05 11:46:44 -07:00
Ian Storm Taylor
d7fa54a631 improve perf delaying conversion to immutable objects (#794) 2017-05-05 11:45:19 -07:00
Ian Storm Taylor
3889c379d9 0.19.27 v0.19.27 2017-05-05 09:02:50 -07:00
Ian Storm Taylor
a17d707665 fix schema normalizing to merge into history 2017-05-05 09:01:15 -07:00
Ian Storm Taylor
5bde3b3ecd 0.19.26 v0.19.26 2017-05-04 17:17:10 -07:00
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