Topic: Is there any way to load the WYSIWYG editor with content from an AJAX call?
DashMarketingGroup priority asked 1 week ago
I have a WYSIWYG editor plugin control in my web page, and I need to load it with HTML retrieved from an AJAX call. There is nothing in the documentation on this, and everything I have tried doesn't work.
So, is there any way to dynamically load the WYSIWYG editor using an AJAX call?
Kamila Pieńkowska staff answered 1 week ago
There are two ways:
- You can get your AJAX response and place it inside WYSIWYG then perform JS init (you should not use auto init attribute)
- You can target WYSIWYG content and add it to already initiated WYSIWYG: https://mdbootstrap.com/snippets/standard/kpienkowska/6301172
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 8.0.0
- Device: laptop
- Browser: chrome
- OS: win11
- Provided sample code: No
- Provided link: No