Topic: WYSIWYG Editor getting very slow after pasting an image
Hi mdb team,
we use your WYSIWYG editor in a project as a mail client - it works as expected!
But... after inserting an image, like a screenshot or something, it gets very slow. The image doesn't have to be very large — e.B. 800 x 600 px is enough — to slow it down.
You can test it here: https://mdbootstrap.com/docs/standard/plugins/wysiwyg-editor/
Do you have any suggestions?
Thanks and best regards Roland
I have nowhere found any information as to what may be causing this behavior. But I think it is related to the fact that this file is encrypted with base64 and it takes a lot of processing power. To be honest, we did not consider adding images from disk at all (because browsers block this action by default). To prevent this, the image should be uploaded to the server and then added. Unfortunately, we are unable to guarantee this option. You would have to handle it on your side. But unfortunately, there is currently no possibility of listening to an event that will be triggered before adding the image
I will add it to our to-do list so that such an event will be added. At the moment you must first upload the image to the server.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.10.2
- Device: All
- Browser: All
- OS: Windows 11
- Provided sample code: No
- Provided link: Yes