Output as HTML #31
-
I just noticed that TipTap has an option to render the content as HTML as opposed to JSON. There are specific places where we can use that in our set up and was wondering if you'd consider adding that as an option on the field level? Also, if you can output HTML, is it possible to import HTML into this field? I know it wouldn't build the relations with other items, but being able to drop in a lot of HTML would be amazing. We are migrating to Directus from an old site that has a lot of HTML in the content body. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Storing the editor content as HTML is not planned. Of course, you can render HTML from your JSON content. For converting HTML to Tiptap/Prosemirror JSON, have a look at https://tiptap.dev/docs/editor/api/utilities/html |
Beta Was this translation helpful? Give feedback.
Storing the editor content as HTML is not planned. Of course, you can render HTML from your JSON content.
For converting HTML to Tiptap/Prosemirror JSON, have a look at https://tiptap.dev/docs/editor/api/utilities/html