地址:
https://ckeditor.com/ckeditor-5/
html
<textarea id="TextareaId" name="TextareaId" class="ckeditor" rows="3" placeholder=""></textarea>
js
脚本赋值{
setEditorValue('$("#TextareaId").val()');
}
function getEditorValue(){ return CKEDITOR.instances['TextareaId'].getData(); } function setEditorValue(value) { CKEDITOR.instances['TextareaId'].setData(value); }