diff options
author | polo <ordipolo@gmx.fr> | 2022-02-20 20:49:13 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2022-02-20 20:49:13 +0100 |
commit | 758b3f359341f963946d6d34e8f39d2a9c1f6040 (patch) | |
tree | 3efb7f1da4be4157615419e630eb0d6efbcb6c3d /lib/ckeditor5/src | |
parent | a5ddb2af05644972de70dab3225bab0797a93934 (diff) | |
download | melaine-758b3f359341f963946d6d34e8f39d2a9c1f6040.zip |
debuggage
Diffstat (limited to 'lib/ckeditor5/src')
-rw-r--r-- | lib/ckeditor5/src/ckeditor.js | 210 |
1 files changed, 131 insertions, 79 deletions
diff --git a/lib/ckeditor5/src/ckeditor.js b/lib/ckeditor5/src/ckeditor.js index f71bb7b..9c89fd5 100644 --- a/lib/ckeditor5/src/ckeditor.js +++ b/lib/ckeditor5/src/ckeditor.js | |||
@@ -1,79 +1,131 @@ | |||
1 | /** | 1 | /** |
2 | * @license Copyright (c) 2014-2021, CKSource - Frederico Knabben. All rights reserved. | 2 | * @license Copyright (c) 2014-2022, CKSource Holding sp. z o.o. All rights reserved. |
3 | * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | 3 | * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license |
4 | */ | 4 | */ |
5 | import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor.js'; | 5 | import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor.js'; |
6 | import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment.js'; | 6 | import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment.js'; |
7 | import AutoImage from '@ckeditor/ckeditor5-image/src/autoimage.js'; | 7 | import AutoImage from '@ckeditor/ckeditor5-image/src/autoimage.js'; |
8 | import Autolink from '@ckeditor/ckeditor5-link/src/autolink.js'; | 8 | import AutoLink from '@ckeditor/ckeditor5-link/src/autolink.js'; |
9 | import Autosave from '@ckeditor/ckeditor5-autosave/src/autosave.js'; | 9 | import Autosave from '@ckeditor/ckeditor5-autosave/src/autosave.js'; |
10 | import BlockQuote from '@ckeditor/ckeditor5-block-quote/src/blockquote.js'; | 10 | import BlockQuote from '@ckeditor/ckeditor5-block-quote/src/blockquote.js'; |
11 | import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js'; | 11 | import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js'; |
12 | import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials.js'; | 12 | import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials.js'; |
13 | import FontColor from '@ckeditor/ckeditor5-font/src/fontcolor.js'; | 13 | import FontColor from '@ckeditor/ckeditor5-font/src/fontcolor.js'; |
14 | import FontFamily from '@ckeditor/ckeditor5-font/src/fontfamily.js'; | 14 | import FontFamily from '@ckeditor/ckeditor5-font/src/fontfamily.js'; |
15 | import FontSize from '@ckeditor/ckeditor5-font/src/fontsize.js'; | 15 | import FontSize from '@ckeditor/ckeditor5-font/src/fontsize.js'; |
16 | import Heading from '@ckeditor/ckeditor5-heading/src/heading.js'; | 16 | import Heading from '@ckeditor/ckeditor5-heading/src/heading.js'; |
17 | import Highlight from '@ckeditor/ckeditor5-highlight/src/highlight.js'; | 17 | import Highlight from '@ckeditor/ckeditor5-highlight/src/highlight.js'; |
18 | import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline.js'; | 18 | import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline.js'; |
19 | import HtmlEmbed from '@ckeditor/ckeditor5-html-embed/src/htmlembed.js'; | 19 | import HtmlEmbed from '@ckeditor/ckeditor5-html-embed/src/htmlembed.js'; |
20 | import Image from '@ckeditor/ckeditor5-image/src/image.js'; | 20 | import Image from '@ckeditor/ckeditor5-image/src/image.js'; |
21 | import ImageCaption from '@ckeditor/ckeditor5-image/src/imagecaption.js'; | 21 | import ImageCaption from '@ckeditor/ckeditor5-image/src/imagecaption.js'; |
22 | import ImageInsert from '@ckeditor/ckeditor5-image/src/imageinsert.js'; | 22 | import ImageInsert from '@ckeditor/ckeditor5-image/src/imageinsert.js'; |
23 | import ImageStyle from '@ckeditor/ckeditor5-image/src/imagestyle.js'; | 23 | import ImageResize from '@ckeditor/ckeditor5-image/src/imageresize.js'; |
24 | import ImageToolbar from '@ckeditor/ckeditor5-image/src/imagetoolbar.js'; | 24 | import ImageStyle from '@ckeditor/ckeditor5-image/src/imagestyle.js'; |
25 | import ImageUpload from '@ckeditor/ckeditor5-image/src/imageupload.js'; | 25 | import ImageToolbar from '@ckeditor/ckeditor5-image/src/imagetoolbar.js'; |
26 | import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic.js'; | 26 | import ImageUpload from '@ckeditor/ckeditor5-image/src/imageupload.js'; |
27 | import Link from '@ckeditor/ckeditor5-link/src/link.js'; | 27 | import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic.js'; |
28 | import LinkImage from '@ckeditor/ckeditor5-link/src/linkimage.js'; | 28 | import Link from '@ckeditor/ckeditor5-link/src/link.js'; |
29 | import List from '@ckeditor/ckeditor5-list/src/list.js'; | 29 | import LinkImage from '@ckeditor/ckeditor5-link/src/linkimage.js'; |
30 | import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph.js'; | 30 | import List from '@ckeditor/ckeditor5-list/src/list.js'; |
31 | import PasteFromOffice from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice'; | 31 | import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph.js'; |
32 | import SimpleUploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.js'; | 32 | import PasteFromOffice from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice.js'; |
33 | import Table from '@ckeditor/ckeditor5-table/src/table.js'; | 33 | import SimpleUploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.js'; |
34 | import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties'; | 34 | import Table from '@ckeditor/ckeditor5-table/src/table.js'; |
35 | import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar.js'; | 35 | import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties'; |
36 | import TextPartLanguage from '@ckeditor/ckeditor5-language/src/textpartlanguage.js'; | 36 | import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties'; |
37 | import TodoList from '@ckeditor/ckeditor5-list/src/todolist'; | 37 | import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar.js'; |
38 | import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline.js'; | 38 | import TodoList from '@ckeditor/ckeditor5-list/src/todolist'; |
39 | 39 | import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline.js'; | |
40 | class Editor extends ClassicEditor {} | 40 | |
41 | 41 | class Editor extends ClassicEditor {} | |
42 | // Plugins to include in the build. | 42 | |
43 | Editor.builtinPlugins = [ | 43 | // Plugins to include in the build. |
44 | Alignment, | 44 | Editor.builtinPlugins = [ |
45 | AutoImage, | 45 | Alignment, |
46 | Autolink, | 46 | AutoImage, |
47 | Autosave, | 47 | AutoLink, |
48 | BlockQuote, | 48 | Autosave, |
49 | Bold, | 49 | BlockQuote, |
50 | Essentials, | 50 | Bold, |
51 | FontColor, | 51 | Essentials, |
52 | FontFamily, | 52 | FontColor, |
53 | FontSize, | 53 | FontFamily, |
54 | Heading, | 54 | FontSize, |
55 | Highlight, | 55 | Heading, |
56 | HorizontalLine, | 56 | Highlight, |
57 | HtmlEmbed, | 57 | HorizontalLine, |
58 | Image, | 58 | HtmlEmbed, |
59 | ImageCaption, | 59 | Image, |
60 | ImageInsert, | 60 | ImageCaption, |
61 | ImageStyle, | 61 | ImageInsert, |
62 | ImageToolbar, | 62 | ImageResize, |
63 | ImageUpload, | 63 | ImageStyle, |
64 | Italic, | 64 | ImageToolbar, |
65 | Link, | 65 | ImageUpload, |
66 | LinkImage, | 66 | Italic, |
67 | List, | 67 | Link, |
68 | Paragraph, | 68 | LinkImage, |
69 | PasteFromOffice, | 69 | List, |
70 | SimpleUploadAdapter, | 70 | Paragraph, |
71 | Table, | 71 | PasteFromOffice, |
72 | TableProperties, | 72 | SimpleUploadAdapter, |
73 | TableToolbar, | 73 | Table, |
74 | TextPartLanguage, | 74 | TableCellProperties, |
75 | TodoList, | 75 | TableProperties, |
76 | Underline | 76 | TableToolbar, |
77 | ]; | 77 | TodoList, |
78 | 78 | Underline | |
79 | export default Editor; | 79 | ]; |
80 | |||
81 | // Editor configuration. | ||
82 | //Editor.defaultConfig = { | ||
83 | //toolbar: { | ||
84 | //items: [ | ||
85 | //'undo', | ||
86 | //'redo', | ||
87 | //'|', | ||
88 | //'heading', | ||
89 | //'|', | ||
90 | //'alignment', | ||
91 | //'bulletedList', | ||
92 | //'numberedList', | ||
93 | //'todoList', | ||
94 | //'blockQuote', | ||
95 | //'horizontalLine', | ||
96 | //'|', | ||
97 | //'bold', | ||
98 | //'italic', | ||
99 | //'underline', | ||
100 | //'|', | ||
101 | //'fontColor', | ||
102 | //'fontSize', | ||
103 | //'highlight', | ||
104 | //'link', | ||
105 | //'|', | ||
106 | //'imageInsert', | ||
107 | //'insertTable' | ||
108 | //] | ||
109 | //}, | ||
110 | //language: 'fr', | ||
111 | //image: { | ||
112 | //toolbar: [ | ||
113 | //'imageTextAlternative', | ||
114 | //'imageStyle:inline', | ||
115 | //'imageStyle:block', | ||
116 | //'imageStyle:side', | ||
117 | //'linkImage' | ||
118 | //] | ||
119 | //}, | ||
120 | //table: { | ||
121 | //contentToolbar: [ | ||
122 | //'tableColumn', | ||
123 | //'tableRow', | ||
124 | //'mergeTableCells', | ||
125 | //'tableCellProperties', | ||
126 | //'tableProperties' | ||
127 | //] | ||
128 | //} | ||
129 | //}; | ||
130 | |||
131 | export default Editor; | ||