udecode / plate

A rich-text editor powered by AI
https://platejs.org
Other
12.08k stars 737 forks source link

Pasting from Google Sheets to Plate Editor Adds Spurious HTML Comment #2136

Closed OliverWales closed 1 year ago

OliverWales commented 1 year ago

Description

In an editor with the Table plugin, pasting a range of cells copied from Google Sheets inserts a table block with that content. However, it also adds a paragraph with the following text:

<!--td {border: 1px solid #cccccc;}br {mso-data-placement:same-cell;}-->

E.g.

image image

Steps

  1. Copy a range of cells from Google Sheets
  2. Paste it into a Plate editor with the table plugin enabled
  3. See spurious HTML comment

Expectation

When pasting from Google Sheets, only the cells' contents should be pasted, no additional HTML comments.

Environment

Funding

Fund with Polar

zbeyens commented 1 year ago

Does it happen here too? https://platejs.org/docs/serializing-docx

It doesn't on my end.

OliverWales commented 1 year ago

Ah, I was missing the Juice plugin, thanks for your help 🙏🏻

daamsie commented 4 months ago

Can someone go through and edit / delete these links to plate.udecode dot io ?

That domain appears to be taken over by a spammer and clicking on the links leads to a bunch of spammy redirects.

Warning: click on those links at your own peril!

zbeyens commented 4 months ago

Too bad! Thanks for the information, I'll edit all occurrences in the repo.

daamsie commented 4 months ago

Thanks very much. Both for updating the links and more importantly for this awesome package :)