You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/collaboration/documents/conversion.mdx
+9-4
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,20 @@ meta:
5
5
description: Use Tiptap to convert documents from docx, odt or markdown to Tiptap
6
6
category: Collaboration
7
7
---
8
-
8
+
import { CodeDemo } from'@/components/CodeDemo'
9
9
import { Callout } from'@/components/ui/Callout'
10
10
11
-
The document conversion API is capable of DOCX, ODT and Markdown conversion from and to Tiptap’s JSON format.
12
-
13
11
<Callouttitle="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.
15
13
</Callout>
16
14
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
+
<CodeDemoisPropath="/Extensions/ImportExport" />
20
+
21
+
17
22
<Callouttitle="Review the postman collection"variant="hint">
18
23
You can also experiment with the Document Conversion API by heading over to our [Postman
Copy file name to clipboardExpand all lines: src/content/editor/extensions/functionality/export.mdx
+4-3
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,15 @@ import { CodeDemo } from '@/components/CodeDemo'
21
21
22
22
ExportTiptap's editor content to various formats like docx, odt, and markdown.
23
23
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
+
24
27
<Callouttitle="Beta release"variant="hint">
25
28
This extension is accessible to anyone with a Tiptap account. To install the extension you need
26
29
access to our [private registry](/guides/pro-extensions), set this up first.
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
+
24
26
<Callouttitle="Beta release"variant="hint">
25
27
This extension is accessible to anyone with a Tiptap account. To install the extension you need
26
28
access to our [private registry](/guides/pro-extensions), set this up first.
Copy file name to clipboardExpand all lines: src/content/guides/upgrade-tiptap-v1.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,7 @@ Read the dedicated [guide on creating menus](/editor/getting-started/style-edito
172
172
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:
173
173
174
174
```js
175
-
editor.chain().toggleBold().focus().run()
175
+
editor.chain().focus().toggleBold().run()
176
176
```
177
177
178
178
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