Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Pasting content with image from wiki suneditor-react #1363

Open
bishnu476 opened this issue Feb 20, 2024 · 0 comments
Open

Error on Pasting content with image from wiki suneditor-react #1363

bishnu476 opened this issue Feb 20, 2024 · 0 comments

Comments

@bishnu476
Copy link

Screenshot 2024-02-20 at 15 17 28

**Pasting content with image from wiki **
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://en.wikipedia.org/wiki/Anatomy'
  2. Copy content with image and paste on editor
  3. It will show the runtime error Unhandled Runtime Error
    NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
  4. Despite showing content in editor, editor is not returning any value

Expected behavior
If it got error while paste, editor should allow to handle inside onPaste function or don't show any content on editor.

Screenshots
Screenshot 2024-02-20 at 15 22 23
Screenshot 2024-02-20 at 15 23 52

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 121.0.6167.184]

Additional context
"suneditor": "^2.45.1",
"suneditor-react": "^3.6.1",
"next": "13.4.4",
"react": "18.2.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant