Commit 8a47471d authored by Marek Lewandowski's avatar Marek Lewandowski

Internal: Fixed code style.

parent 59903ab7
......@@ -58,15 +58,15 @@
<p>You can use this sample to validate whether your <a href="https://ckeditor.com/docs/ckeditor5/latest/builds/guides/development/custom-builds.html">custom build</a> works fine.</p>`;
DecoupledEditor.create( editorData )
.then( editor => {
window.editor = editor;
.then( editor => {
window.editor = editor;
document.querySelector( '.toolbar-container' ).appendChild( editor.ui.view.toolbar.element );
document.querySelector( '.editable-container' ).appendChild( editor.ui.view.editable.element );
} )
.catch( error => {
console.error( 'There was a problem with initializing the editor', error );
} );
document.querySelector( '.toolbar-container' ).appendChild( editor.ui.view.toolbar.element );
document.querySelector( '.editable-container' ).appendChild( editor.ui.view.editable.element );
} )
.catch( error => {
console.error( 'There was a problem with initializing the editor', error );
} );
</script>
</body>
......
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