Post

Any tips on achieving the following? I have a tiptap editor, and I want all styles stripped from text and links when I paste them into the editor. I plan to apply custom styles to the pasted links, but the key point is that I don't want any styles to carry over.

0 reposts1 like

This is great! Thanks, Konnor! I had made it so far to know about handlePaste, but `transformPastedText` and `transformPastedHTML` is new to me - I'll dig deeper on this. Thank you!!

Due to ProseMirrors document model, im not really confident it would be directly useful. A lot of the problem is just finding the right ProseMirror hooks and proper node traversal + transform

I cede the floor 🫡 also, thanks for always chiming in on these particulars around editors and such! so so important that hard won experience like yours is shared and passed on to the community at large! 🙏