1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-24 09:13:24 +01:00

759 Commits

Author SHA1 Message Date
Ian Storm Taylor
917906e378 refactor onBeforeChange 2016-08-04 13:18:20 -07:00
Samy Pessé
f25c5d9a64 Add handler "onBeforeChange" (#219)
* Add handler "onReceiveState"

* Change onReceiveChange to onBeforeChange and call it before onChange as well

* Dont'call props.onBeforeChange since it's added to CorePlugin

* Update documentation for onBeforeChange
2016-08-04 13:11:23 -07:00
Ian Storm Taylor
2d63957246 0.10.11 v0.10.11 2016-08-04 13:00:11 -07:00
Ian Storm Taylor
e6bac8180a update the scroll position on content changes 2016-08-04 12:57:52 -07:00
Ian Storm Taylor
3823c44fcd 0.10.10 v0.10.10 2016-08-04 11:24:13 -07:00
Djamil Legato
5a92083686 Drop deprecated escape and unescape (#217) 2016-08-04 11:20:08 -07:00
Vladimir
9cb361dc29 Lint errors fixes. 2016-08-03 04:03:43 +03:00
Vladimir
95eb2c0bdf Example how to render slate to IFrame 2016-08-03 03:31:26 +03:00
Vladimir
186f1a7c6d Core component will deduce the context from the dispatched event.target element 2016-08-03 03:27:33 +03:00
Ian Storm Taylor
5825db3caa 0.10.9 v0.10.9 2016-08-02 10:37:31 -07:00
Ian Storm Taylor
0eea98d4a9 fix link example 2016-08-02 10:33:02 -07:00
Ian Storm Taylor
197515e096 fix leaf to re-render when DOM is mismatched 2016-08-02 10:31:25 -07:00
Vladimir
5fa616a01d Added example skeleton. IFrame component + basic usage 2016-08-02 11:08:07 +03:00
Ian Storm Taylor
7128085e9e 0.10.8 v0.10.8 2016-08-01 19:27:11 -07:00
Ian Storm Taylor
9521b1abf6 fix selection handling for insertFragment and wrapInline 2016-08-01 19:23:21 -07:00
Ian Storm Taylor
2ab07f4e26 0.10.7 v0.10.7 2016-08-01 18:55:28 -07:00
Ian Storm Taylor
c4e1e475eb add insertInline with tests 2016-08-01 18:53:05 -07:00
Ian Storm Taylor
789c4b3002 fix void leaf selection handling 2016-08-01 18:26:27 -07:00
Ian Storm Taylor
1780bb0c75 0.10.6 v0.10.6 2016-08-01 18:12:04 -07:00
Ian Storm Taylor
4e6ca3953b fix onBeforeInput decorations logic, fix initial onSelect logic 2016-08-01 18:09:30 -07:00
Ian Storm Taylor
13e7b96dc8 0.10.5 v0.10.5 2016-08-01 15:22:08 -07:00
Ian Storm Taylor
39aaa916ec fix to only double new lines on last leaf 2016-08-01 15:18:37 -07:00
Ian Storm Taylor
5e34e2f46d 0.10.4 v0.10.4 2016-08-01 13:50:32 -07:00
Ian Storm Taylor
5e9f19db92 remove extra style prop from editor example 2016-08-01 13:48:23 -07:00
Ian Storm Taylor
560b28ce32 add debug points, remove unused deps, fix composition 2016-08-01 13:45:46 -07:00
Ian Storm Taylor
53de6bb404 0.10.3 v0.10.3 2016-08-01 12:47:35 -07:00
Ian Storm Taylor
27df42bde0 remove console log 2016-08-01 12:44:06 -07:00
Ian Storm Taylor
40598d7198 fix isNative incorrectly being checked 2016-08-01 12:40:09 -07:00
Ian Storm Taylor
145b039616 0.10.2 v0.10.2 2016-08-01 12:33:04 -07:00
Ian Storm Taylor
5593d501e1 fix shouldComponentUpdate check on content 2016-08-01 12:30:30 -07:00
Marcelo Jorge Vieira
d7f65d5821 README.md: Fixed typo (#212)
Replaced 'direclty' with 'directly'
2016-08-01 11:48:57 -07:00
Ian Storm Taylor
cf8eebec4f 0.10.1 v0.10.1 2016-07-29 12:57:21 -07:00
Ian Storm Taylor
9c420b227d update lint script 2016-07-29 12:52:19 -07:00
Ian Storm Taylor
99d1c283f0 add prod and dev examples 2016-07-29 12:44:35 -07:00
Ian Storm Taylor
ecc9202db7 change placeholder to only render when visible 2016-07-29 12:44:08 -07:00
Ian Storm Taylor
6775657ab5 0.10.0 v0.10.0 2016-07-29 12:11:02 -07:00
Ian Storm Taylor
e536884f1f update history 2016-07-29 12:08:39 -07:00
Ian Storm Taylor
17d676b639 refactor rtl support, add rtl example 2016-07-29 12:05:01 -07:00
Ian Storm Taylor
e8e497131e Merge branch 'master' of github.com:ianstormtaylor/slate 2016-07-29 11:25:13 -07:00
Samy Pessé
845e284ee4 Add RTL support (#204)
* Add property textAlignment for the whole editor

* textAlignment should be set on Content

* Add basic for directionMap in State

* Add RTL to example

* Use setDocument for updating direction map when inserting blocks

* Remove debug log

* Only add 'dir' to node when is not default value

* Prevent tests from failing because of .DS_Store on OSX

* Add tests for rtl rendering

* Fix rendering tests

* Fix test for rendering "text-direction"

* Remove textAlignment prop on editor

* Don't use a directionMap but directly a "textDir" on nodes

* Remove .setDocument from State
2016-07-29 11:25:07 -07:00
Ian Storm Taylor
38ee32b93f update renderMark reference 2016-07-29 11:23:38 -07:00
Ian Storm Taylor
fb97c50c4c fix add support for rendering components as marks 2016-07-29 11:20:00 -07:00
Samy Pessé
4d58c0035c Add ability for renderMark to return a React component (#202)
* Switch rendering of leaf to use mark as component

* Backward compatibility with renderMark

Don’t fail on null marks

* Adapt tests for new rendering of marks

* Fix selection with new rendered marks

* Adapt rendering test for custom-mark-multiple

Don’t add span when renderMark return undefined
2016-07-29 10:46:56 -07:00
Ian Storm Taylor
788627d2db update bundling 2016-07-29 10:46:31 -07:00
Ian Storm Taylor
25d78aa391 run dist and lint when test is run 2016-07-29 09:17:38 -07:00
Ian Storm Taylor
4b712f1567 update readme 2016-07-29 09:01:01 -07:00
Ian Storm Taylor
9f9682e98c update readme 2016-07-29 08:59:45 -07:00
Ian Storm Taylor
5355aeaf95 0.9.2 v0.9.2 2016-07-29 08:58:10 -07:00
Ian Storm Taylor
e45e06d9e8 fix coding style 2016-07-29 08:56:27 -07:00
Robin Berjon
9ab6267271 do not throw too early while looking for a rule with which to serialize (#205) 2016-07-29 08:54:47 -07:00