-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Expand file tree
/
Copy pathemail.js
More file actions
51 lines (47 loc) · 1.41 KB
/
email.js
File metadata and controls
51 lines (47 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/* globals console, window, document, ClassicEditor, CKEditorPlugins, CS_CONFIG */
import { TOKEN_URL } from '@ckeditor/ckeditor5-ckbox/tests/_utils/ckbox-config.js';
ClassicEditor
.create( document.querySelector( '#snippet-link' ), {
extraPlugins: [ ...Object.values( CKEditorPlugins ) ],
cloudServices: CS_CONFIG,
toolbar: {
items: [
'undo', 'redo', '|', 'heading',
'|', 'bold', 'italic',
'|', 'link', 'bookmark', 'insertImage', 'insertTable', 'mediaEmbed',
'|', 'bulletedList', 'numberedList', 'outdent', 'indent'
]
},
image: {
toolbar: [
'imageStyle:inline', 'imageStyle:block', 'imageStyle:wrapText', '|',
'toggleImageCaption', 'imageTextAlternative', 'ckboxImageEdit'
]
},
ui: {
viewportOffset: {
top: window.getViewportTopOffsetConfig()
}
},
ckbox: {
tokenUrl: TOKEN_URL,
allowExternalImagesEditing: [ /^data:/, 'origin', /ckbox/ ],
forceDemoLabel: true
},
licenseKey: 'GPL'
} )
.then( editor => {
window.editor = editor;
window.attachTourBalloon( {
target: window.findToolbarItem( editor.ui.view.toolbar, item => item.label && item.label === 'Link' ),
text: 'Click to create a link.',
editor
} );
} )
.catch( err => {
console.error( err.stack );
} );