How to insert html with inline styles in the editor? #4948
Replies: 3 comments
-
@lujdong Have you figured it out? I'm looking for the same exact thing. |
Beta Was this translation helpful? Give feedback.
-
I am also stuck on this. I understand it's a feature of tiptap that the styles are stripped. I believe it is possible if you update the schema. I am struggling though. If anyone has figured it out please help! |
Beta Was this translation helpful? Give feedback.
-
@maggie-chintaro This is how I solved it for pasting html (it preserves html5 style attributes):
There might be a simpler way for some of the details but I don't know TipTap well enough yet. :-/ |
Beta Was this translation helpful? Give feedback.
-
I would like to insert the following html string into the editor, I've tried many ways and it didn't happen, does anyone have a good idea?
for example:
Beta Was this translation helpful? Give feedback.
All reactions