After migration into new Tiptap, it fails to read text styling from previous Tiptap #1919
Unanswered
Arik14
asked this question in
Questions & Help
Replies: 4 comments 1 reply
-
I have the same problem, hope to get help. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have the same problem. any workaround or fix? |
Beta Was this translation helpful? Give feedback.
0 replies
-
same problem for me, do you have an alternative to keep this kind of span structure ?
But the lib by default transform it like this :
|
Beta Was this translation helpful? Give feedback.
0 replies
-
yeah same issue, the problem is that tiptap doesn't support nested marks i believe |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have unique problem where I set up new editor from new version of Tiptap. But when I use html string from output of previous Tiptap, it seems fail to maintain nested structure of this html and lose some of the styling value. For example,
This is html from previous Tiptap using custom extension.
But when I use that html and put it into new Tiptap using
setContent
command, the html become like thisThe style
font-size
becomenull
, thecolor
become missing. I use custom extension and learn it from text-align custom extension from Tiptap github. I don't know what missing, but it seems like everytime I use nested html like this, the style tends to be missing, even if I don't use custom extension at all. For example if I just use font-family. It seems like behavior of new Tiptap is different than previous version.All the nested style become inline style or merge (but with missing value)
Or did I miss something that cause Tiptap fail to maintain nested structure html above?
Here I create sandbox https://codesandbox.io/s/wandering-wood-etvm7?file=/src/components/HelloWorld.vue
You can inspect element of the text Hello world, then click button Toggle Editor and inspect element again.
You can see how it change.
And here is more detail explanation about my problem.
#1815
Beta Was this translation helpful? Give feedback.
All reactions