简体   繁体   English

将输入字段转换为富文本编辑器

[英]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.我不能也不想使用 contentEditable 为 true 的 div,也不想操纵 div 的输入并使用 JS 将其发送到某个隐藏的输入标签,然后由于项目限制使用它来发送表单. 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. 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.你可以试试 Jodit 编辑器。 Its open source and can be used on textarea.它是开源的,可以在 textarea 上使用。

This is the examples link:- https://froala.com/wysiwyg-editor/examples/textarea/这是示例链接:- https://froala.com/wysiwyg-editor/examples/textarea/

This is the documentation link:- https://xdsoft.net/jodit/doc/这是文档链接:- https://xdsoft.net/jodit/doc/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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