Skip to content

Commit 95bae9d

Browse files
authored
Merge pull request #3789 from udecode/docs/examples
Docs/examples
2 parents 1e9b3c1 + e8d1ac0 commit 95bae9d

File tree

440 files changed

+6873
-12535
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+6873
-12535
lines changed

apps/www/content/docs/ai.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
22
title: AI
3-
description: AI menu with commands, streaming responses in a preview or directly into the editor.
43
docs:
54
- route: https://pro.platejs.org/docs/examples/ai
65
title: AI
76
---
87

9-
<ComponentPreview name="playground-demo" id="ai" />
8+
<ComponentPreview name="ai-demo" />
109

1110
<PackageInfo>
1211

apps/www/content/docs/alignment.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
22
title: Alignment
3-
description: Align your content to different positions.
43
docs:
54
- route: /docs/components/align-dropdown-menu
65
title: Align Dropdown Menu
76
---
87

9-
<ComponentPreview name="playground-demo" id="align" />
8+
<ComponentPreview name="align-demo" />
109

1110
<PackageInfo>
1211

apps/www/content/docs/autoformat.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Autoformat
3-
description: Apply formatting automatically using shortcodes.
43
docs:
54
- route: /docs/basic-elements
65
title: Basic Elements
@@ -12,7 +11,7 @@ docs:
1211
title: List
1312
---
1413

15-
<ComponentPreview name="playground-demo" id="autoformat" />
14+
<ComponentPreview name="autoformat-demo" />
1615

1716
<PackageInfo>
1817

apps/www/content/docs/basic-elements.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Basic Elements
3-
description: Enhance your editor with essential formatting elements.
43
docs:
54
- route: /docs/components/blockquote-element
65
title: Block Quote Element
@@ -14,7 +13,7 @@ docs:
1413
title: Heading Element
1514
---
1615

17-
<ComponentPreview name="playground-demo" id="basic-nodes" />
16+
<ComponentPreview name="basic-elements-demo" />
1817

1918
<PackageInfo>
2019

apps/www/content/docs/basic-marks.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
22
title: Basic Marks
3-
description: Set of essential text formatting options.
43
docs:
54
- route: /docs/components/mark-toolbar-button
65
title: Mark Toolbar Button
76
---
87

9-
<ComponentPreview name="playground-demo" id="basic-nodes" />
8+
<ComponentPreview name="basic-marks-demo" />
109

1110
<PackageInfo>
1211

apps/www/content/docs/block-menu.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Block Menu
3-
description: Provides quick access to block-specific actions.
43
docs:
54
- route: /docs/components/block-context-menu
65
title: Block Context Menu
@@ -13,7 +12,7 @@ docs:
1312

1413
---
1514

16-
<ComponentPreview name="playground-demo" id="block-menu" />
15+
<ComponentPreview name="block-menu-demo" />
1716

1817
<PackageInfo>
1918

apps/www/content/docs/block-selection.mdx

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
title: Block Selection
3-
description: Select and manipulate entire text blocks.
43
---
54

6-
<ComponentPreview name="playground-demo" id="block-selection" />
5+
<ComponentPreview name="block-selection-demo" />
76

87
<PackageInfo>
98

@@ -79,10 +78,9 @@ Default configuration:
7978
BlockSelectionPlugin.configure({
8079
options: {
8180
areaOptions: {
82-
boundaries: `#${editor.uid}`,
83-
container: `#${editor.uid}`,
84-
selectables: `#${editor.uid} .slate-selectable`,
85-
},
81+
boundaries: `#${editor.uid}`,
82+
container: `#${editor.uid}`,
83+
selectables: `#${editor.uid} .slate-selectable`,
8684
},
8785
},
8886
});

apps/www/content/docs/callout.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Callout
3-
description: Highlight important information or add special notes.
43
docs:
54
- route: https://pro.platejs.org/docs/components/callout-element
65
title: Callout Element

apps/www/content/docs/caption.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
22
title: Caption
3-
description: Add captions to your blocks.
43
docs:
54
- route: /docs/components/draggable
65
title: Draggable
76
---
87

9-
<ComponentPreview name="playground-demo" id="media" />
8+
<ComponentPreview name="media-demo" />
109

1110
<PackageInfo>
1211

apps/www/content/docs/collaboration.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Collaboration
3-
description: Collaborate with others in a single document.
43
---
54

65
<Callout className="my-4">

apps/www/content/docs/column.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: Column
3-
description: Add Columns to your document.
43
docs:
54
- route: /docs/components/column-element
65
title: Column Element
76
- route: /docs/components/column-group-element
87
title: Column Group Element
98
---
109

11-
<ComponentPreview name="playground-demo" id="column" />
10+
<ComponentPreview name="column-demo" />
1211

1312
<PackageInfo>
1413

apps/www/content/docs/combobox.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Combobox
3-
description: Utilities for adding comboboxes to your editor.
43
---
54

65
The `TriggerComboboxPluginOptions` mixin configures your plugin to insert a combobox input element when the user types a specified trigger character.

apps/www/content/docs/comments.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Comments
3-
description: Add comments to text as marks.
43
docs:
54
- route: /docs/components/comment-leaf
65
title: Comment Leaf
@@ -10,7 +9,7 @@ docs:
109
title: Comments Popover
1110
---
1211

13-
<ComponentPreview name="playground-demo" id="comment" />
12+
<ComponentPreview name="comments-demo" />
1413

1514
<PackageInfo>
1615

apps/www/content/docs/components/changelog.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Use the [CLI](https://platejs.org/docs/components/cli) to install the latest ver
1313

1414
### November 14 #16.7
1515

16-
Add `ToolbarSplitButton`, `ToolbarSplitButtonPrimary`, `ToolbarSplitButtonSecondary` in `toolbar.tsx`.
17-
Refactor `media-toolbar-button.tsx` to use the new split button.
16+
- `toolbar`: Add `ToolbarSplitButton`, `ToolbarSplitButtonPrimary`, `ToolbarSplitButtonSecondary`
17+
- `media-toolbar-button`: use `ToolbarSplitButton`
1818

1919
### November 13 #16.6
2020

apps/www/content/docs/copilot.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: Copilot
3-
description: Render AI suggestions ghost text as you type.
43
docs:
54
- route: /docs/components/ghost-text
65
title: Ghost Text
76
- route: https://pro.platejs.org/docs/components/ghost-text
87
title: Ghost Text
98
---
109

11-
<ComponentPreview name="playground-demo" id="copilot" />
10+
<ComponentPreview name="copilot-demo" />
1211

1312
<PackageInfo>
1413

apps/www/content/docs/csv.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
title: Serializing CSV
3-
description: Copy paste from CSV to Slate.
43
---
54

6-
<ComponentPreview name="playground-demo" id="csv" />
5+
<ComponentPreview name="csv-demo" />
76

87
<PackageInfo>
98

apps/www/content/docs/cursor-overlay.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
22
title: Cursor Overlay
3-
description: A visual overlay for cursors and selections.
43
docs:
54
- route: /docs/components/cursor-overlay
65
title: Cursor Overlay
76
---
87

9-
<ComponentPreview name="playground-demo" id="cursor-overlay" />
8+
<ComponentPreview name="cursor-overlay-demo" />
109

1110
<PackageInfo>
1211

apps/www/content/docs/date.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
22
title: Date
3-
description: Insert and format dates in your document.
43
docs:
54
- route: /docs/components/date-element
65
title: Date Element
76
---
87

9-
<ComponentPreview name="playground-demo" id="date" />
8+
<ComponentPreview name="date-demo" />
109

1110
<PackageInfo>
1211

apps/www/content/docs/dnd.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
22
title: Drag & Drop
3-
description: Allows movement of blocks, such as paragraph or tables, within the editor.
43
docs:
54
- route: /docs/components/draggable
65
title: Draggable
76
---
87

9-
<ComponentPreview name="playground-demo" id="dnd" />
8+
<ComponentPreview name="dnd-demo" />
109

1110
<PackageInfo>
1211

apps/www/content/docs/docx.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
title: Serializing Docx
3-
description: Copy paste from DOCX to Slate.
43
---
54

6-
<ComponentPreview name="playground-demo" id="docx" />
5+
<ComponentPreview name="docx-demo" />
76

87
<PackageInfo>
98

apps/www/content/docs/emoji.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Emoji
3-
description: Insert emoji inline.
43
docs:
54
- route: /docs/combobox
65
title: Combobox
@@ -12,7 +11,7 @@ docs:
1211
title: Emoji Toolbar Dropdown
1312
---
1413

15-
<ComponentPreview name="playground-demo" id="emoji" />
14+
<ComponentPreview name="emoji-demo" />
1615

1716
<PackageInfo>
1817

apps/www/content/docs/equation.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Equation
3-
description: Enables the insertion and rendering of LaTeX equations in your editor.
43
docs:
54
- route: https://pro.platejs.org/docs/components/equation-element
65
title: Equation Element
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Editable Voids
3-
description: Nest editors in void nodes.
43
---
54

65
<ComponentPreview name="editable-voids-demo" />
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Hundreds Blocks
3-
description: Render an editor with 700 blocks.
43
---
54

65
<ComponentPreview name="hundreds-blocks-demo" />
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Hundreds Editors
3-
description: Render 300 editors.
43
---
54

65
<ComponentPreview name="hundreds-editors-demo" />
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: IFrame
3-
description: Rendering in iframes.
43
---
54

65
<ComponentPreview name="iframe-demo" />
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Preview Markdown
3-
description: Decorate texts with markdown preview.
43
---
54

6-
<ComponentPreview name="preview-md-demo" />
5+
<ComponentPreview name="preview-markdown-demo" />

apps/www/content/docs/examples/version-history.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Version History
3-
description: Show a diff of two different points in a Plate document's history.
43
---
54

65

apps/www/content/docs/excalidraw.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
22
title: Excalidraw
3-
description: Create drawings and diagrams as block nodes.
43
docs:
54
- route: /docs/components/excalidraw-element
65
title: Excalidraw Element
76
---
87

9-
<ComponentPreview name="playground-demo" id="excalidraw" />
8+
<ComponentPreview name="excalidraw-demo" />
109

1110
<PackageInfo>
1211

apps/www/content/docs/exit-break.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
title: Exit Break
3-
description: Exit a large block using a shortcut.
43
---
54

6-
<ComponentPreview name="playground-demo" id="exit-break" />
5+
<ComponentPreview name="exit-break-demo" />
76

87
<PackageInfo>
98

apps/www/content/docs/font.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ docs:
66
title: Color Dropdown Menu
77
---
88

9-
<ComponentPreview name="playground-demo" id="font" />
9+
<ComponentPreview name="font-demo" />
1010

1111
<PackageInfo>
1212

apps/www/content/docs/forced-layout.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
title: Forced Layout
3-
description: Strict document structure.
43
---
54

6-
{/* <ComponentPreview name="playground-demo" id="forced-layout" /> */}
5+
{/* <ComponentPreview name="forced-layout-demo" /> */}
76

87
<PackageInfo>
98

0 commit comments

Comments
 (0)