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

561 Commits

Author SHA1 Message Date
Jolene Langlinais
970c2aac13
docs(concepts): include normalizing inline default behavior ()
Signed-off-by: irmerk <jolenelanglinais@gmail.com>
2020-04-24 08:28:21 -07:00
Jolene Langlinais
c04672b1f7
docs(resources): add product and editor ()
Signed-off-by: irmerk <jolenelanglinais@gmail.com>
2020-04-23 21:26:31 -07:00
George Rodier
9a6e8fba92
Import Transforms in custom elements walkthough () 2020-04-22 09:09:42 -07:00
Kirk Swenson
f6bfe034d7
Fix typos and other minor issues in docs ()
Fixed typos and grammatical errors in the documentation
2020-04-10 09:05:03 -07:00
Ken Aoki
5da89b8656
Update 01-installing-slate.md () 2020-03-24 18:12:06 -07:00
Charanjit Singh
f86f5ca065
Fix Typo ()
Typo fix in documentation
2020-03-11 08:11:42 -07:00
Cameron Ackerman
1e7d21f7cd
Add API documentation for Slate core package ()
* Create transforms.md

* Create initial documentation for transforms

* Remove extra whitespace in transforms.md

* Create initial documentation for interfaces

* Rearrange API docs by category of interface

* Add documentation of static methods

* Use 'static' notation for transforms
2020-03-05 09:30:29 -08:00
琚致远
2d901f6520
Update 08-rendering.md () 2020-02-27 14:49:29 -08:00
Ondrej Stanek
ad881564d8
Fix invalid example link ()
Hovering menu => Hovering toolbar
2020-02-26 07:47:59 -08:00
Lucas Willems
c5249c745c
Update 06-editor.md () 2020-02-21 09:14:47 -08:00
Björn Theart
c4eb7b37bc
Update 06-editor.md () 2020-02-21 08:22:28 -08:00
Xleine
217bdd611b fix some doc's bug (with v0.57.1) ()
* 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
Aykut Kardaş
f813af790e An unused state was deleted. () 2020-01-27 15:22:54 -05:00
Jonathan Wieben
612dbcb3a6 Chore: Typo in docs ()
* Fix: Typo in docs

It should read edit instead of editor.

* Chore: Further typo fix
2020-01-27 15:22:36 -05:00
David Calhoun
27db5e6c45 docs: walkthroughs: make implicit React dependencies explicit () 2020-01-27 15:21:08 -05:00
Leon
8cd9b79352 Update 04-applying-custom-formatting.md () 2020-01-03 23:02:40 -08: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
Sunny Hirai
3ffd73cd7d
Fix broken link in introduction of docs () 2019-12-18 18:23:05 -08:00
Sunny Hirai
cc7f035229 Added a warning for Android in faq () 2019-12-18 21:18:35 -05:00
Ian Storm Taylor
0bbe121d76
Remove commands ()
* remove commands in favor of editor-level functions

* update examples

* fix lint
2019-12-18 15:00:42 -05:00
Ian Storm Taylor
235a578967
rename Node.text to Node.string () 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
7d832b5e12
Standardize node matching APIs ()
* add lowest mode and universal flag to `Editor.nodes`

* add `mode` handling to all transforms

* add extra `Editor.is*` helpers

* change `Editor.previous` to make all optional

* change `Editor.next` to make all optional

* change `Editor.match` to make all optional

* add `Editor.void` helper

* remove non-function match arguments

* remove NodeMatch interface

* change to lowest match by default everywhere

* rename `Editor.match` to `Editor.above`

* use new helpers

* cleanup

* make NodeEntry generic, cleanup

* fix NodeEntry generics

* ensure only ancestors are returned from Editor.above

* add type-narrowing to `Editor.nodes`, remove extras

* remove other Node entry types

* cleanup

* remove `Editor.block` and `Editor.inline` helpers
2019-12-15 19:36:05 -05:00
Ian Storm Taylor
6552da940a
Add format_text command, and editor.marks state ()
* add format_text command, refactor command extensions

* update onChange to not receive selection

* update docs

* fix tests
2019-12-12 15:37:55 -05:00
Ian Storm Taylor
e68a5cd305
remove the slate-schema package () 2019-12-10 17:53:27 -05:00
Ian Storm Taylor
faf73d4521 fix normalizing guide 2019-12-10 14:26:09 -05:00
Ian Storm Taylor
c35ca628f2 typo 2019-12-10 14:01:21 -05:00
Ian Storm Taylor
dbac72cc8e add normalizing guide to docs 2019-12-10 13:55:44 -05:00
Ryan Gurney
1141f59f4f Small docs changes ()
* Small docs changes

Fixes a couple of small typos in the plugins documentation.

* Update 07-plugins.md
2019-12-09 13:16:50 -05:00
Yoz Grahame
ff516ccad8 Fix introduction links to examples ()
Existing links (to Github) were 404ing, so I changed them to point to slatejs.org.
Removed the final list item linking to the rest of the examples, since I can't see a page on slatejs.org that does that. Instead, I added a line after the examples list that talks about "View Source" and links to the Github folder listing.
2019-12-06 17:22:56 -05:00
Ian Storm Taylor
be8b7222ee update walkthroughs 2019-12-06 12:06:53 -05:00
Tim Buckley
ed974222a9 Custom Format docs typo fix: leaf -> props ()
* Custom Format docs typo fix: leaf -> props

* Update 04-applying-custom-formatting.md
2019-12-05 19:13:34 -05:00
Ryan Gurney
6aae94156b Change B to I in code example ()
Fixes a ridiculously small typo in the rendering code example.
2019-12-05 18:58:41 -05:00
Ian Storm Taylor
12af78609f fix gitbook sidebar 2019-12-05 13:11:10 -05:00
Ian Storm Taylor
fad4e7fc80 fix gitbook sidebar 2019-12-05 12:59:14 -05:00
Ian Storm Taylor
124ff37c3a update docs 2019-12-05 12:52:52 -05:00
Ian Storm Taylor
7e6f680a1f update changelogs 2019-12-05 11:44:07 -05:00
Ian Storm Taylor
f3fc2c2a54
Change <Slate> to a controlled component ()
* change <Slate> to be a controlled component

* add comment about unstable React API
2019-12-05 11:36:44 -05:00
Ian Storm Taylor
4c03b497d9
remove marks, in favor of text properties ()
* remove marks, in favor of text properties

* fix lint

* fix more examples

* update docs
2019-12-05 11:21:15 -05:00
Ian Storm Taylor
6fc935a4b8 remove Editor.toggleMarks from docs 2019-12-02 22:23:58 -05:00
Ian Storm Taylor
22b2ae507e fix links in migrating guide 2019-12-02 20:03:46 -05:00
Wee
434ce21cec feat: allow MarkTransforms methods to take a single mark (resolve ) () 2019-12-01 13:49:29 -05:00
Ian Storm Taylor
68569f286e improve Editor.marks and Editor.nodes abstraction 2019-11-29 23:15:08 -05:00
sherwinyu
0da1dd128c Update Adding Event Handlers walkthrough ()
The previous example no longer uses `onChange`, so don't reference it in this walkthrough.
2019-11-29 17:25:40 -05:00
sherwinyu
2ad7735869 Fix typos in Installing Slate walkthrough () 2019-11-29 15:07:16 -05:00
Marton Langa
f7a72a1977 Fix typo in docs () 2019-11-29 12:41:52 -05:00
Ian Storm Taylor
5e5f1d9046 fix guides links 2019-11-29 08:11:37 -05:00
Irwan Fario Subastian
cedc7dc2a5 lint & example fixes ()
* fix import extensions of eslint

* revert next.config.cjs

* fix eslint globbing

* add migrating to docs’ sidebar

* fix prettier error on Contributing.md

* put quotes for glob matching for windows user

* remove type: module from  package.json
2019-11-29 00:16:39 -05:00