CaoJay/Blog/passage/static/CKEditor_5/config.js

24 lines
551 B
JavaScript

$(document).ready(function () {
ClassicEditor
.create( document.querySelector( '#id_content' ), {
licenseKey: '',
} )
.then( editor => {
window.editor = editor;
} )
.catch( error => {
console.error( 'Oops, something went wrong!' );
console.error( 'Please, report the following error on https://github.com/ckeditor/ckeditor5/issues with the build id and the error stack trace:' );
console.warn( 'Build id: t135og8d0bvb-jm7a328xrdiy' );
console.error( error );
} );
})