Darginec05 / Yoopta-Editor

Build Notion-like, Craft-like, Coda-like, Medium-like editors with Yoopta
https://yoopta.dev/
MIT License
1.18k stars 91 forks source link

[BUG] Pasted nested inline images is omitted #184

Closed chrassendk closed 3 months ago

chrassendk commented 3 months ago

Has this bug been raised before?

Description

When copying a text with an inline image, e.g. an email, and pasting into the Yoopta editor the image block is not recognized and the inline image is omitted.

Steps to Reproduce

Steps to reproduce

  1. Copy a text block with an inline image from e.g. an email
  2. Paste in
  3. Verify that the image is omitted and not pasted in

Environment

Screenshots

Console output when pasting:

image

(Image block is obvious at the bottom)

Do you want to work on this issue?

No

If "yes" to above, please explain how you would technically implement this

No response

chrassendk commented 3 months ago

When parsing just the image it renders a Image block, so as soon as it is wrapped with it is omitted.

Darginec05 commented 3 months ago

Done in v4.6.0 Examples - https://yoopta.dev/examples/withExports