Topic: WYSIWYG Editor: onkeyup event
tlippuner priority asked 5 years ago
Hi
in the WYSIWYG texteditor i cannot use the onkeyup event like on a normal input field. i need to grab the user's entry on the fly which is with onkeyup normal working in normal textareas. Which element i need to bind for the onkeyup?
<textarea name="m_body" id="mailtext"" >content...</textarea>
JS: $("#mailtext").mdbWYSIWYG();
tlippuner priority answered 5 years ago
Thanks for the answer, at least i know know why it is not working like i was thinking .-) Meanwhile i used another wysiwyg editor where i used the keyup function as i tried already the on change function, where always the last key i pressed is not included in the value of the textarea. So for the moment i found a solution and meanwhile i am waiting for the solution for the mdb wysiwyg .-) Thanks a lot
Bartłomiej Malanowski staff answered 5 years ago
Currently, this would be difficult to do as long as the WYSIWYG always have the unique, random ID like #wysiwyg-9ab75ef8-f4ef-4c44-9a5f-6acd1c44a65d
Would it be okay to you if you used something like $('#mailtext').on('change', func...);
?
However, this issue will be fixed in the future
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB jQuery
- MDB Version: 4.8.5
- Device: Windows Server
- Browser: chrome
- OS: Windows 2016 Server Standard
- Provided sample code: No
- Provided link: No
tlippuner priority commented 5 years ago
Actually i need the same functionality as it is used in this forum if i create a post and during my writing my text is shown under the wysiwyg textarea field .-)