Oguz Gelal
e2dd13c24d
Fix test folders name swap for interfaces/Editor/nodes mode-highest vs. mode-all ( #3484 )
2020-02-20 16:27:13 -08:00
Adam Sanderson
e9e1eb2524
Adds Transforms import to forced-layout ( #3503 )
...
The forced layout demo included Editor, but not Transforms, and would crash when it needed to enforce the layout.
2020-02-20 16:20:36 -08:00
Andreas Geffen Lundahl
eb181f3279
Allow zero as offset on <anchor> and <focus> inside <selection> ( #3491 )
...
* Allow zero as offset on <anchor> and <focus> inside <selection>
When creating a selection using the <selection> hyperscript tag, you couldn't
set zero as offset on <anchor> and <focus>, because of a faulty falsiness
check. This is fixed by checking if the offset is falsy and explicitly not zero.
* Make sure offset can't be null or undefined on <anchor> and <focus>
Throw exception when offset is strictly null or undefined, on <anchor> and
<focus> when creating a <selection>.
2020-02-20 16:00:59 -05:00
Ian Storm Taylor
30bc30df4b
Update Readme.md
2020-02-20 11:06:45 -05:00
Ian Storm Taylor
17ee9f8954
Update Readme.md
2020-02-20 11:04:39 -05:00
Xleine
217bdd611b
fix some doc's bug (with v0.57.1) ( #3393 )
...
* fix: code blocks's info string
this info string. should be `jsx`
* fix: editor's exec invoke
now, editor.exec() is not available in Slate v0.57.1
so, use editor.insertText() to instead it
* refactor: delete a nerver used value
* update add new chinese translate
update chinese translate to `v0.57.1`
Co-authored-by: Ian Storm Taylor <ian@ianstormtaylor.com>
2020-01-27 15:24:15 -05:00
Lucas Willems
8202e08102
Fix link ( #3440 )
2020-01-27 15:23:53 -05:00
Tyler Hallada
d341cb1592
Fix links in slate-react readme ( #3428 )
...
Fixed the "Plugins" link and changed the "Constants" link (a folder which no longer exists) to a "Hooks" link.
2020-01-27 15:23:13 -05:00
Aykut Kardaş
f813af790e
An unused state was deleted. ( #3413 )
2020-01-27 15:22:54 -05:00
Jonathan Wieben
612dbcb3a6
Chore: Typo in docs ( #3411 )
...
* Fix: Typo in docs
It should read edit instead of editor.
* Chore: Further typo fix
2020-01-27 15:22:36 -05:00
Arnas
a69e48d3ed
Fixed Getting Started url ( #3407 )
...
Getting started URL was broken
2020-01-27 15:22:19 -05:00
David Calhoun
27db5e6c45
docs: walkthroughs: make implicit React dependencies explicit ( #3402 )
2020-01-27 15:21:08 -05:00
David Calhoun
5797562849
readme: Documentation: fix broken url; http -> https ( #3401 )
2020-01-27 15:20:50 -05:00
Nikhil Vijayan
74444c28ab
fix: update incorrect link ( #3381 )
2020-01-27 15:20:02 -05:00
Leon
8cd9b79352
Update 04-applying-custom-formatting.md ( #3371 )
2020-01-03 23:02:40 -08:00
cvlmtg
653690e285
update jsfiddle url ( #3377 )
2019-12-28 23:52:32 -05:00
Ian Storm Taylor
22d9095c39
v0.57.1
v0.57.1
2019-12-20 12:39:32 -05:00
Ziad Beyens
101661ee27
fix: Slate editor props ( #3359 )
...
* fix: Slate editor props
TS2322: Type 'Editor' is not assignable to type 'ReactEditor'.
* revert
* generic type
* generic type
* generic type
* extends Editor
* extends Editor
* infer
* infer
2019-12-20 12:17:00 -05:00
Ian Storm Taylor
e1f4ff1f6c
fix docs
2019-12-19 14:37:10 -05:00
Ian Storm Taylor
fa4ab37b02
Merge branch 'master' of github.com:ianstormtaylor/slate
2019-12-19 14:34:38 -05:00
Ian Storm Taylor
dae32cd473
update docs for removal of commands
2019-12-19 14:34:34 -05:00
Johan Sörlin
5418e260d4
moved getLeaves from react to slate core package and added some basic tests ( #3358 )
2019-12-19 11:51:44 -05:00
Corentin.Andre
e54b07eba8
fix: undoing and redoing are switched ( #3363 )
2019-12-19 11:50:32 -05:00
Sunny Hirai
3ffd73cd7d
Fix broken link in introduction of docs ( #3357 )
2019-12-18 18:23:05 -08:00
Sunny Hirai
cc7f035229
Added a warning for Android in faq ( #3356 )
2019-12-18 21:18:35 -05:00
Ian Storm Taylor
922d03e006
v0.57.0
v0.57.0
2019-12-18 16:04:05 -05:00
Jack Turnbull
6659152145
build: relax transpilation for es modules ( #3337 )
...
* build: relax transpilation for es modules
ES module output currently includes regenerator runtime functions which
can block strict content security policies. For an ES module output this
isn't required because any runtime supporting ES modules will also
support async/await natively. It is also highly likely that users of the
ES module would also be performing their own transipliation of
async/await and we should not make assumptions on their behalf (some may
prefer promises to regenerator, for example).
This commit splits the babel config into two; an unchanged one for the
UMD output, and another for module output.
* build: override babel settings from plugin
2019-12-18 15:53:59 -05:00
Ian Storm Taylor
40617e4f1a
update changelog
2019-12-18 15:47:41 -05:00
Ian Storm Taylor
0bbe121d76
Remove commands ( #3351 )
...
* remove commands in favor of editor-level functions
* update examples
* fix lint
2019-12-18 15:00:42 -05:00
Ian Storm Taylor
c2d7905e19
v0.56.1
v0.56.1
2019-12-18 14:59:46 -05:00
Dylan Markow
0e4917f49b
Swap remove_mark/add_mark example ( #3349 )
2019-12-18 12:25:54 -05:00
Christopher Biscardi
af7a7e7c45
deletebackward -> deleteforward ( #3346 )
2019-12-18 11:15:59 -05:00
cvlmtg
0b7644e975
fix onBeforeInput memoization ( #3347 )
...
* fix memoization of onBeforeInput callback
* fix lint
* fix callbacks dependencies
2019-12-18 11:15:17 -05:00
Ian Storm Taylor
d765cbc3a8
v0.56.0
v0.56.0
2019-12-17 23:03:12 -05:00
Ian Storm Taylor
72036826cf
update changelog
2019-12-17 22:55:13 -05:00
Ian Storm Taylor
28b5217370
split format_text
into two commands ( #3340 )
...
* split format_text into two commands
* fix lint
2019-12-17 22:17:33 -05:00
Ian Storm Taylor
235a578967
rename Node.text
to Node.string
( #3341 )
2019-12-17 22:17:21 -05:00
Ian Storm Taylor
4ee9f8b4e6
fix LOC estimates with new version of cloc
2019-12-16 16:41:35 -05:00
Ian Storm Taylor
6f98363566
v0.55.3
v0.55.3
2019-12-16 16:36:55 -05:00
Ian Storm Taylor
c77e1233d4
remove unused deps, fix peerDependencies
2019-12-16 16:32:44 -05:00
Ian Storm Taylor
72b4bf11db
v0.55.2
v0.55.2
2019-12-16 16:20:19 -05:00
Rinoc Johnson
63a94a23c7
Fix emoji offsets ( #3310 )
...
* Fix emoji offsets
* Fix linting
* Remove the unused `forward` argument
* Fix linting
* Code review
* Fix linting
* Add newline to end of file
2019-12-16 16:12:27 -05:00
Ian Storm Taylor
1f367a25fa
v0.55.1
v0.55.1
2019-12-16 16:05:01 -05:00
Ian Storm Taylor
0f1d97eced
add match
option to Editor.levels
2019-12-16 15:59:02 -05:00
Ian Storm Taylor
00bed99bc8
fix changelog typo
2019-12-15 21:10:06 -05:00
Ian Storm Taylor
40856cfa95
v0.55.0
v0.55.0
2019-12-15 21:03:17 -05:00
Ian Storm Taylor
39c14b12a1
god i hate lerna
2019-12-15 20:55:55 -05:00
Ian Storm Taylor
97d229fde7
update lerna config?
2019-12-15 20:52:38 -05:00
Ian Storm Taylor
c21d8cf825
update lerna config
2019-12-15 20:50:39 -05:00
Ian Storm Taylor
483b4f7740
update changelog
2019-12-15 20:48:32 -05:00