-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parsing issue #15
Comments
The same |
Save as json can work |
I struggled with this issue for quite some time and hope the work around I've found helps others. I discovered that <div was being replaced by <p. After digging in a little deeper it seems that extending the Paragraph extension to render a div instead of p will partially fix the issue. There are still some formatting issues but it is somewhat functional with this change. import { mergeAttributes } from '@tiptap/core'; Paragraph.extend({parseHTML() {return [{ tag: 'div' }]}, renderHTML({ HTMLAttributes }) {return ['div', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]},}) |
Hello, I think I have the same problem as you. In the text editor, the columns are displayed fine; likewise it works when I do Could you please indicate in which file you make the change you indicate in your comment? to test if this solves my problem. Thank you. |
This change is made in the file where your Paragraph extension is imported. |
Thanks for the package. It works fine but when I save the layout and retrieve the content the parent div gets lost for some reason and the layout disappear.
The text was updated successfully, but these errors were encountered: