Skip to content

Pasting an image from clipboard returns null on Android #158

Description

@zsomborgellerfi

Describe the bug
If I copy an image from my gallery or from the browser and paste it into the editor, onChangeHtml returns the following:

{
"target": 11522, 
"value": "<html> null </html>"
}

To Reproduce
Steps to reproduce the behavior:

  1. Copy an image on your phone
  2. Focus the rich text editor
  3. Paste the image
  4. See "null" text in the editor

Expected behaviour
I would expect null not to be in the editor text.
Ideally, there would be a separate onImagePasted callback. Or onChangeHtml could return the image path.

Screenshots
Image

Device (please complete the following information):

  • Device: Pixel 6
  • OS: Android
  • Version 15

Additional context
Pasting an image does nothing on iOS. It would be nice to have a way to handle pasted content more robust.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions