📜  ckeditor 插入内容 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:05.034000             🧑  作者: Mango

代码示例1
editor.model.change( writer => {
    const insertPosition = editor.model.document.selection.getFirstPosition();

    writer.insertText( 'CKEditor 5 rocks!', { linkHref: 'https://ckeditor.com/' }, insertPosition );
} );