ckEditorsCollection[target].data.model.change( writer => {
writer.insertText(Data.html, ckEditorsCollection[target].model.document.selection.getFirstPosition() );
ckEditorsCollection[target].editing.view.focus();
});
npm install --save @ckeditor/ckeditor5-html-embed
import { HtmlEmbed } from '@ckeditor/ckeditor5-html-embed';
ClassicEditor
.create( document.querySelector( '#editor' ), {
plugins: [ HtmlEmbed, /* ... */ ],
toolbar: [ 'htmlEmbed', /* ... */ ],
} )
.then( /* ... */ )
.catch( /* ... */ );