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
535 B
21 lines
535 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 "jqm6bng4zmtr-n2qr6fdzw2rs" and the error stack trace:`
|
|
].join( '\n' );
|
|
|
|
console.error( message );
|
|
console.error( error );
|
|
}
|