簡體   English   中英

將輸入字段轉換為富文本編輯器

[英]Converting an input field into a Rich Text Editor

我有一個非常基本的問題要問,但是誰能告訴我是否有任何方法可以將輸入轉換為富文本編輯器? 我做了一些谷歌搜索,但我找不到關於這個主題的明確解釋。 我不能也不想使用 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. 請有人告訴我一個可能的解決方案。 提前致謝!

你可以試試 Jodit 編輯器。 它是開源的,可以在 textarea 上使用。

這是示例鏈接:- https://froala.com/wysiwyg-editor/examples/textarea/

這是文檔鏈接:- https://xdsoft.net/jodit/doc/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM