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

Adding image sometimes throws error #1366

Open
numanbaig opened this issue Feb 23, 2024 · 2 comments
Open

Adding image sometimes throws error #1366

numanbaig opened this issue Feb 23, 2024 · 2 comments

Comments

@numanbaig
Copy link

adding image sometimes throws error
Error:
Uncaught TypeError: Cannot read properties of null (reading 'previousElementSibling')
at Object.removeNode (core.js:2146:45)
at Object.insertComponent (core.js:1565:28)
at Object.create_image (image.js:677:18)
at Object.onRender_imgBase64 (image.js:556:30)
at Object. (image.js:533:63)

To Reproduce
Steps to reproduce the behavior:
add multiple images

Expected behavior
should add images without error

Screenshots
image

@inday-jin
Copy link

editor getRange_addLine function add

editor.core.getRange_addLine(editor.core.getRange());
await uploadHandler(response);

@Lokheim
Copy link

Lokheim commented Mar 8, 2024

editor getRange_addLine function add

editor.core.getRange_addLine(editor.core.getRange()); await uploadHandler(response);

Where to put this code when i use react-suneditor ?

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

3 participants