ckeditor文本编辑器使用
作者:互联网
地址:
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); }
标签:function,文本编辑,ckeditor,TextareaId,setEditorValue,instances,使用,CKEDITOR 来源: https://www.cnblogs.com/hongyu18/p/15634085.html