1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-18 21:21:21 +02:00

Fix introduction links to examples (#3266)

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.
This commit is contained in:
Yoz Grahame
2019-12-06 14:22:56 -08:00
committed by Ian Storm Taylor
parent b629be3398
commit ff516ccad8

View File

@@ -60,16 +60,17 @@ Check out the [**live demo**](http://slatejs.org) of all of the examples!
To get a sense for how you might use Slate, check out a few of the examples:
- [**Plain text**](https://github.com/ianstormtaylor/slate/tree/master/examples/plaintext) — showing the most basic case: a glorified `<textarea>`.
- [**Rich text**](https://github.com/ianstormtaylor/slate/tree/master/examples/richtext) — showing the features you'd expect from a basic editor.
- [**Markdown preview**](https://github.com/ianstormtaylor/slate/tree/master/examples/markdown-preview) — showing how to add key handlers for Markdown-like shortcuts.
- [**Links**](https://github.com/ianstormtaylor/slate/tree/master/examples/links) — showing how wrap text in inline nodes with associated data.
- [**Images**](https://github.com/ianstormtaylor/slate/tree/master/examples/images) — showing how to use void (text-less) nodes to add images.
- [**Hovering menu**](https://github.com/ianstormtaylor/slate/tree/master/examples/hovering-menu) — showing how a contextual hovering menu can be implemented.
- [**Tables**](https://github.com/ianstormtaylor/slate/tree/master/examples/tables) — showing how to nest blocks to render more advanced components.
- [**Paste HTML**](https://github.com/ianstormtaylor/slate/tree/master/examples/paste-html) — showing how to use an HTML serializer to handle pasted HTML.
- [**Mentions**](https://github.com/ianstormtaylor/slate/tree/master/examples/mentions) — showing how to use inline void nodes for simple @-mentions.
- [**See all the examples...**](https://github.com/ianstormtaylor/slate/tree/master/examples/mentions)
- [**Plain text**](https://www.slatejs.org/examples/plaintext) — showing the most basic case: a glorified `<textarea>`.
- [**Rich text**](https://www.slatejs.org/examples/richtext) — showing the features you'd expect from a basic editor.
- [**Markdown preview**](https://www.slatejs.org/examples/markdown-preview) — showing how to add key handlers for Markdown-like shortcuts.
- [**Links**](https://www.slatejs.org/examples/links) — showing how wrap text in inline nodes with associated data.
- [**Images**](https://www.slatejs.org/examples/images) — showing how to use void (text-less) nodes to add images.
- [**Hovering menu**](https://www.slatejs.org/examples/hovering-menu) — showing how a contextual hovering menu can be implemented.
- [**Tables**](https://www.slatejs.org/examples/tables) — showing how to nest blocks to render more advanced components.
- [**Paste HTML**](https://www.slatejs.org/examples/paste-html) — showing how to use an HTML serializer to handle pasted HTML.
- [**Mentions**](https://www.slatejs.org/examples/mentions) — showing how to use inline void nodes for simple @-mentions.
Each example includes a **View Source** link to the code that implements it. And we have [other examples](https://github.com/ianstormtaylor/slate/tree/master/site/examples) too.
If you have an idea for an example that shows a common use case, pull request it!