ckeditor文本编辑器使用

地址:

https://ckeditor.com/ckeditor-5/

ckeditor文本编辑器使用

 

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

 

上一篇:MIT/Unit 5: Object Oriented Programming/9. Classes and Inheritance


下一篇:skipped: maximum number of running instances reached (1)