mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-20 10:22:26 +08:00
25 lines
796 B
JavaScript
25 lines
796 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
|
||
|
*/
|
||
|
|
||
|
/* global document, console, window */
|
||
|
|
||
|
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor.js';
|
||
|
import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset.js';
|
||
|
|
||
|
ClassicEditor
|
||
|
.create( document.querySelector( '#editor' ), {
|
||
|
image: { toolbar: [ 'toggleImageCaption', 'imageTextAlternative' ] },
|
||
|
plugins: [
|
||
|
ArticlePluginSet
|
||
|
],
|
||
|
toolbar: [ 'heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ]
|
||
|
} )
|
||
|
.then( editor => {
|
||
|
window.editor = editor;
|
||
|
} )
|
||
|
.catch( err => {
|
||
|
console.error( err.stack );
|
||
|
} );
|