From #110
New issue I encountered today: if I select all on the text in an editor window and then paste text over it, the editor window appears blank, but the text content is there, as it can be highlighted and shows up in the AI interactions window as selected text. Video below.
This issue only occurs when pasting text from the PDF viewer. What actually happens is that the PDF Viewer renders PDFs as images and then add transparent text on top of the image to make it selectable. When pasting the text in the editor, formatting is preserved, making the text invisible in the editor.
I think we want to preserve text formatting when pasting, but we can add a rule that removes transparent color property as I don't see any use case where users would actually want to paste transparent text
From #110
This issue only occurs when pasting text from the PDF viewer. What actually happens is that the PDF Viewer renders PDFs as images and then add transparent text on top of the image to make it selectable. When pasting the text in the editor, formatting is preserved, making the text invisible in the editor.
I think we want to preserve text formatting when pasting, but we can add a rule that removes transparent color property as I don't see any use case where users would actually want to paste transparent text