如何在表单中使用 Jodit

How to use Jodit in a form

我试图在表格中使用 Jodit,但是当我保存我的表格时,它只保存字符而不是数据库中的所有 HTML。我正在使用 Quill,并且找到了解决方案。但是因为我用 Quill 处理图像有困难,所以我正在尝试 Jodit。

我正在使用版本 3.2.44

<textarea id="editor" name="text">${text}</textarea>
var editor = new Jodit("#editor", {
    "spellcheck": false,
    "toolbarSticky": false,
    "showWordsCounter": false,
    "buttons": "|,bold,underline,italic,|,superscript,subscript,|,ul,ol,|,outdent,indent,|,font,fontsize,brush,paragraph,|,image,table,link,|,align,undo,redo,\n,cut,hr,eraser,|,symbol,selectall,print"
});

我想知道是否有人可以给我一些示例或提示。谢谢

对不起,我错了。 Jodit 在表单中完美运行,并使用我的数据库正确更新的文本区域保存表单。我忘了我使用了消毒,它正在删除所有标签!我只需要调整消毒。