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: 2 comments 5 replies
-
plz , help me ! |
Beta Was this translation helpful? Give feedback.
-
Reopened this discussion as it seems this is still an issue for people. See the answer from @nperez0111 regarding Prosemirror's stripping behavior to understand what the current issue is. I myself didn't look to deep into this so I can't 100% say where this is happening right now and if we can avoid it on Tiptap's side. Edit: Actually I closed this and created an issue for this: #5720 Please discuss inside this issue instead of this discussion. |
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>