udecode / plate

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

Some features around pasting into the editor do not work #2365

Closed joshua7v closed 1 year ago

joshua7v commented 1 year ago

Description

Hi, I just discovered platejs and thanks for the amazing work. I'm trying plate out to see if it could be used within our product. However, as I experimenting with the docs, I found some examples does not work as expected.

for example:

  1. in the docs about medi

    You can also paste the media URL directly into the editor, and it will be automatically embedded.

However, in the demo within that specific page, it seems not doing what it states. After pasting a link, its just a plain link, nothing happens. In addition, I'm expecting paste an image directly in could work?(eg: taking a screenshot and paste in editor). It looks like this operation will freeze the editor.

  1. in the docs about csv

I was expecting to get a table after pasting the csv content in. But it seems does not work, nothing happens.

Steps

Just play with the official docs

Funding

Fund with Polar

zbeyens commented 1 year ago

Thanks for the report,

1.1. Just removed from the doc, this is not supported yet 1.2. Due to a regex https://www.regular-expressions.info/catastrophic.html in the media provider parser, fixed by https://github.com/udecode/plate/pull/2366

  1. Copying from CSV includes an image file, fixed by https://github.com/udecode/plate/pull/2366.