mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
20 lines
616 B
JavaScript
20 lines
616 B
JavaScript
![]() |
/**
|
||
|
* @license Copyright (c) 2003-2024, 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 DecoupledEditor = require( '../../build/ckeditor' );
|
||
|
|
||
|
DecoupledEditor.create( document.querySelector( '#editor' ) )
|
||
|
.then( editor => {
|
||
|
document.querySelector( '.toolbar-container' ).appendChild( editor.ui.view.toolbar.element );
|
||
|
|
||
|
window.editor = editor;
|
||
|
} )
|
||
|
.catch( error => {
|
||
|
console.error( 'There was a problem initializing the editor.', error );
|
||
|
} );
|