Skip to content

Commit 80f6404

Browse files
Merge pull request #11 from ueberdosis/main
Recent changes on main
2 parents e419b9f + 0ef752e commit 80f6404

File tree

7 files changed

+19
-25
lines changed

7 files changed

+19
-25
lines changed

Diff for: src/content/collaboration/documents/conversion.mdx

+9-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@ meta:
55
description: Use Tiptap to convert documents from docx, odt or markdown to Tiptap
66
category: Collaboration
77
---
8-
8+
import { CodeDemo } from '@/components/CodeDemo'
99
import { Callout } from '@/components/ui/Callout'
1010

11-
The document conversion API is capable of DOCX, ODT and Markdown conversion from and to Tiptap’s JSON format.
12-
1311
<Callout title="Beta" variant="hint">
14-
This feature is currently in beta and available to all users with a Tiptap account.
12+
This feature is currently in beta and available to all users with a Tiptap account.
1513
</Callout>
1614

15+
The document conversion API is capable of DOCX, ODT and Markdown conversion from and to Tiptap’s JSON format.
16+
17+
The following demo is using the Document conversion API by integrating both, the [import](/editor/extensions/functionality/import) and [export](/editor/extensions/functionality/export) extensions into the editor.
18+
19+
<CodeDemo isPro path="/Extensions/ImportExport" />
20+
21+
1722
<Callout title="Review the postman collection" variant="hint">
1823
You can also experiment with the Document Conversion API by heading over to our [Postman
1924
Collection](https://www.postman.com/docking-module-explorer-14290287/workspace/tiptap-collaboration-public/collection/33042171-cc186a66-df41-4df8-9c6e-e91b20deffe5?action=share&creator=32651125).

Diff for: src/content/editor/api/editor.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Create a command chain to call multiple commands at once.
254254

255255
```js
256256
// Execute two commands at once
257-
editor.chain().toggleBold().focus().run()
257+
editor.chain().focus().toggleBold().run()
258258
```
259259

260260
### destroy()

Diff for: src/content/editor/extensions/functionality/export.mdx

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ import { CodeDemo } from '@/components/CodeDemo'
2121

2222
Export Tiptap's editor content to various formats like docx, odt, and markdown.
2323

24+
We also have an [Import extension](/editor/extensions/functionality/import), or you can review an example that does both import and export [over here](/collaboration/documents/conversion).
25+
26+
2427
<Callout title="Beta release" variant="hint">
2528
This extension is accessible to anyone with a Tiptap account. To install the extension you need
2629
access to our [private registry](/guides/pro-extensions), set this up first.
2730
</Callout>
2831

29-
## Example
30-
31-
<CodeDemo isPro path="/Extensions/ImportExport" />
32+
<CodeDemo isPro path="/Extensions/Export" />
3233

3334
## Setup JWT authentication on your server
3435

Diff for: src/content/editor/extensions/functionality/import.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ import { CodeDemo } from '@/components/CodeDemo'
2121

2222
Import documents from various formats like docx, odt, and markdown and convert them to Tiptap's JSON format.
2323

24+
We also have an [Export extension](/editor/extensions/functionality/export), or you can review an example that does both import and export [over here](/collaboration/documents/conversion).
25+
2426
<Callout title="Beta release" variant="hint">
2527
This extension is accessible to anyone with a Tiptap account. To install the extension you need
2628
access to our [private registry](/guides/pro-extensions), set this up first.
2729
</Callout>
2830

29-
## Example
30-
31-
<CodeDemo isPro path="/Extensions/ImportExport" />
31+
<CodeDemo isPro path="/Extensions/Import" />
3232

3333
## Authenticate on your server
3434

Diff for: src/content/editor/extensions/functionality/placeholder.mdx

-12
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,6 @@ Placeholder.configure({
113113
})
114114
```
115115

116-
### considerAnyAsEmpty
117-
118-
Consider any node that is not a leaf or atom as empty for the editor empty check.
119-
120-
Default: `false`
121-
122-
```js
123-
Placeholder.configure({
124-
considerAnyAsEmpty: true,
125-
})
126-
```
127-
128116
### showOnlyWhenEditable
129117

130118
Show decorations only when editor is editable.

Diff for: src/content/editor/getting-started/install/alpine.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ document.addEventListener('alpine:init', () => {
8181
editor.chain().toggleHeading(opts).focus().run()
8282
},
8383
toggleBold() {
84-
editor.chain().toggleBold().focus().run()
84+
editor.chain().focus().toggleBold().run()
8585
},
8686
toggleItalic() {
8787
editor.chain().toggleItalic().focus().run()

Diff for: src/content/guides/upgrade-tiptap-v1.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Read the dedicated [guide on creating menus](/editor/getting-started/style-edito
172172
Most commands can be combined to one call now. That’s shorter than separate function calls in most cases. Here is an example to make the selected text bold:
173173

174174
```js
175-
editor.chain().toggleBold().focus().run()
175+
editor.chain().focus().toggleBold().run()
176176
```
177177

178178
The `.chain()` is required to start a new chain and the `.run()` is needed to actually execute all the commands in between. Read more about [the new Tiptap commands](/editor/api/commands) in our API documentation.

0 commit comments

Comments
 (0)