Unverified Commit 0f94b3be authored by Aleksander Nowodzinski's avatar Aleksander Nowodzinski Committed by GitHub

Merge pull request #30 from ckeditor/i/1803

Docs: Error messages in manual tests and a sample should be more verbose should the editor fail to initialize (see ckeditor/ckeditor5#1803).
parents db4508fd 88253fba
......@@ -45,8 +45,8 @@ And use it in your website:
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
.catch( error => {
console.error( 'There was a problem initializing the editor.', error );
} );
</script>
```
......@@ -67,8 +67,8 @@ DecoupledEditor
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
.catch( error => {
console.error( 'There was a problem initializing the editor.', error );
} );
```
......
......@@ -64,8 +64,8 @@
document.querySelector( '.toolbar-container' ).appendChild( editor.ui.view.toolbar.element );
document.querySelector( '.editable-container' ).appendChild( editor.ui.view.editable.element );
} )
.catch( err => {
console.error( err.stack );
.catch( error => {
console.error( 'There was a problem initializing the editor.', error );
} );
</script>
......
......@@ -14,6 +14,6 @@ DecoupledEditor.create( document.querySelector( '#editor' ) )
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
.catch( error => {
console.error( 'There was a problem initializing the editor.', error );
} );
......@@ -13,6 +13,6 @@ DecoupledEditor.create( document.querySelector( '#editor' ) )
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
.catch( error => {
console.error( 'There was a problem initializing the editor.', error );
} );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment