mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
chore(admonitions): start off with a fresh copy of blockquote plugin
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
/* globals window */
|
||||
|
||||
import { CKBox, CKBoxImageEdit } from '@ckeditor/ckeditor5-ckbox';
|
||||
import { PictureEditing, ImageInsert, ImageResize, AutoImage } from '@ckeditor/ckeditor5-image';
|
||||
import { LinkImage } from '@ckeditor/ckeditor5-link';
|
||||
import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config.js';
|
||||
import { TOKEN_URL } from '@ckeditor/ckeditor5-ckbox/tests/_utils/ckbox-config.js';
|
||||
|
||||
// Umberto combines all `packages/*/docs` into the `docs/` directory. The import path must be valid after merging all directories.
|
||||
import ClassicEditor from '../build-classic.js';
|
||||
|
||||
ClassicEditor.defaultConfig = {
|
||||
plugins: ClassicEditor.builtinPlugins.concat( [
|
||||
PictureEditing,
|
||||
ImageResize,
|
||||
ImageInsert,
|
||||
AutoImage,
|
||||
LinkImage,
|
||||
CKBox,
|
||||
CKBoxImageEdit
|
||||
] ),
|
||||
cloudServices: CS_CONFIG,
|
||||
toolbar: {
|
||||
items: [
|
||||
'undo', 'redo', '|', 'heading',
|
||||
'|', 'bold', 'italic',
|
||||
'|', 'link', 'insertImage', 'insertTable', 'blockQuote', 'mediaEmbed',
|
||||
'|', 'bulletedList', 'numberedList', 'outdent', 'indent'
|
||||
]
|
||||
},
|
||||
ui: {
|
||||
viewportOffset: {
|
||||
top: window.getViewportTopOffsetConfig()
|
||||
}
|
||||
},
|
||||
ckbox: {
|
||||
tokenUrl: TOKEN_URL,
|
||||
allowExternalImagesEditing: [ /^data:/, 'origin', /ckbox/ ],
|
||||
forceDemoLabel: true
|
||||
},
|
||||
image: {
|
||||
toolbar: [ 'toggleImageCaption', 'imageTextAlternative', 'ckboxImageEdit' ]
|
||||
}
|
||||
};
|
||||
|
||||
window.ClassicEditor = ClassicEditor;
|
||||
Reference in New Issue
Block a user