Failed to read Font Size when the content is nested with other styling. #1815
-
Hello, I have another problem here.
In previous version of Tiptap, it worked with nested span. I have text with similar structure html span of span with various styling generate by previous Tiptap. But when I apply new Tiptap, it seems like my custom extension fail to recognize font size if it nested and it's child of another span with different styling. Please kindly help me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
plz , help me ! |
Beta Was this translation helpful? Give feedback.
nested spans do not work because prosemirror (our underlying library) strips it by default. The correct way to specify this would be with a single
span
tag like:<span style="font-size: 40px; font-family: Arial">INNER TEXT</span>