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

doc: change example readme doc link (#3853)

This commit is contained in:
Wendell Hu
2020-11-03 11:38:08 -06:00
committed by GitHub
parent 42748e64e1
commit 59ee7f8488

View File

@@ -2,16 +2,16 @@
This directory contains a set of examples that give you an idea for how you might use Slate to implement your own editor. Take a look around! This directory contains a set of examples that give you an idea for how you might use Slate to implement your own editor. Take a look around!
- [**Plain text**](./plaintext.js) — showing the most basic case: a glorified `<textarea>`. - [**Plain text**](./plaintext.tsx) — showing the most basic case: a glorified `<textarea>`.
- [**Rich text**](./richtext.js) — showing the features you'd expect from a basic editor. - [**Rich text**](./richtext.tsx) — showing the features you'd expect from a basic editor.
- [**Forced Layout**](./forced-layout.js) - showing how to use constraints to enforce a document structure. - [**Forced Layout**](./forced-layout.tsx) - showing how to use constraints to enforce a document structure.
- [**Markdown Shortcuts**](./markdown-shortcuts.js) — showing how to add key handlers for Markdown-like shortcuts. - [**Markdown Shortcuts**](./markdown-shortcuts.tsx) — showing how to add key handlers for Markdown-like shortcuts.
- [**Links**](./links.js) — showing how wrap text in inline nodes with associated data. - [**Links**](./links.tsx) — showing how wrap text in inline nodes with associated data.
- [**Images**](./images.js) — showing how to use void (text-less) nodes to add images. - [**Images**](./images.tsx) — showing how to use void (text-less) nodes to add images.
- [**Hovering toolbar**](./hovering-toolbar.js) — showing how a hovering toolbar can be implemented. - [**Hovering toolbar**](./hovering-toolbar.tsx) — showing how a hovering toolbar can be implemented.
- [**Tables**](./tables.js) — showing how to nest blocks to render more advanced components. - [**Tables**](./tables.tsx) — showing how to nest blocks to render more advanced components.
- [**Paste HTML**](./paste-html.js) — showing how to use an HTML serializer to handle pasted HTML. - [**Paste HTML**](./paste-html.tsx) — showing how to use an HTML serializer to handle pasted HTML.
- [**Code Highlighting**](./code-highlighting.js) — showing how to use decorations to dynamically format text. - [**Code Highlighting**](./code-highlighting.tsx) — showing how to use decorations to dynamically format text.
- ...and more! - ...and more!
If you have an idea for an example that shows a common use case, pull request it! If you have an idea for an example that shows a common use case, pull request it!