18 lines
515 B
JavaScript
18 lines
515 B
JavaScript
/**
|
|
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
*/
|
|
|
|
/* eslint-env commonjs */
|
|
/* globals window, document, console */
|
|
|
|
const ClassicEditor = require( '../../build/ckeditor' );
|
|
|
|
ClassicEditor.create( document.querySelector( '#editor' ) )
|
|
.then( editor => {
|
|
window.editor = editor;
|
|
} )
|
|
.catch( error => {
|
|
console.error( 'There was a problem initializing the editor.', error );
|
|
} );
|