Topic: WYSISWY editor inside form for taking notes
davesmacer priority asked 1 year ago
Hi,
I want to use a wysiwyg editor as a form-control to take notes from the user. It works fine, however, whenever I put the inside a form, it is messing up the link add input format like this:
If I put the editor outside my form it works correctly:
Examining the htmls, when it works fine, the "link add popup" has a form (), and it is not being added when the control is inside my form, so that's what's messing it up (best guess).
Any insight or help with this would be greatly appreciated, it works fine, but the format looks a bit messy.
Regards, David Solano
Grzegorz Bujański staff answered 1 year ago
we are sorry for that, we will fix it as soon as possible. At the moment, the only workaround to this problem is to add styles that will set the dropdown spacing.
<form>
<div id="my-wysiwyg" class="wysiwyg" data-mdb-wysiwyg="wysiwyg">
</div>
</form>
#my-wysiwyg #links-section .dropdown-menu {
padding: 1rem 1.5rem 1rem 1.5rem
}
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 6.4.0
- Device: Laptop
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No