简体   繁体   中英

Converting an input field into a Rich Text Editor

I have a pretty basic question to ask but can anybody please tell me if there is any way to convert an input into a Rich Text Editor?? I did some googling but I cannot find a clear explanation regarding this topic. I can't and don't want to use a div with contentEditable as true nor do I want to manipulate the input of the div and send it to some hidden input tag using JS and then use it to send the form due to project limitations. I'm using Redux Form in a MERN Stack-based app and the redux form value doesn't seem to catch the value when I send the HTML of the div of Rich Text Editor to a hidden input using JQuery. Please, somebody, tell me a possible solution. Thanks in advance!

You can try Jodit editor. Its open source and can be used on textarea.

This is the examples link:- https://froala.com/wysiwyg-editor/examples/textarea/

This is the documentation link:- https://xdsoft.net/jodit/doc/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM