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); }

 

posted on 2021-12-02 16:54  ~闪电~  阅读(30)  评论(0)    收藏  举报

导航