You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
534 B

ClassicEditor
.create( document.querySelector( '.editor' ), {
// Editor configuration.
} )
.then( editor => {
window.editor = editor;
} )
.catch( handleSampleError );
function handleSampleError( error ) {
const issueUrl = 'https://github.com/ckeditor/ckeditor5/issues';
const message = [
'Oops, something went wrong!',
`Please, report the following error on ${ issueUrl } with the build id "159xygvqs85-m65lqtchlynm" and the error stack trace:`
].join( '\n' );
console.error( message );
console.error( error );
}