|
@@ -9,11 +9,6 @@ import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
|
|
|
import ToolbarView from '@ckeditor/ckeditor5-ui/src/toolbar/toolbarview';
|
|
import ToolbarView from '@ckeditor/ckeditor5-ui/src/toolbar/toolbarview';
|
|
|
import Locale from '@ckeditor/ckeditor5-utils/src/locale';
|
|
import Locale from '@ckeditor/ckeditor5-utils/src/locale';
|
|
|
|
|
|
|
|
-import alignLeft from '@ckeditor/ckeditor5-alignment/theme/icons/align-left.svg';
|
|
|
|
|
-import alignCenter from '@ckeditor/ckeditor5-alignment/theme/icons/align-center.svg';
|
|
|
|
|
-import alignRight from '@ckeditor/ckeditor5-alignment/theme/icons/align-right.svg';
|
|
|
|
|
-import alignJustify from '@ckeditor/ckeditor5-alignment/theme/icons/align-justify.svg';
|
|
|
|
|
-
|
|
|
|
|
import bold from '@ckeditor/ckeditor5-basic-styles/theme/icons/bold.svg';
|
|
import bold from '@ckeditor/ckeditor5-basic-styles/theme/icons/bold.svg';
|
|
|
import italic from '@ckeditor/ckeditor5-basic-styles/theme/icons/italic.svg';
|
|
import italic from '@ckeditor/ckeditor5-basic-styles/theme/icons/italic.svg';
|
|
|
import underline from '@ckeditor/ckeditor5-basic-styles/theme/icons/underline.svg';
|
|
import underline from '@ckeditor/ckeditor5-basic-styles/theme/icons/underline.svg';
|
|
@@ -22,6 +17,8 @@ import strikethrough from '@ckeditor/ckeditor5-basic-styles/theme/icons/striketh
|
|
|
import subscript from '@ckeditor/ckeditor5-basic-styles/theme/icons/subscript.svg';
|
|
import subscript from '@ckeditor/ckeditor5-basic-styles/theme/icons/subscript.svg';
|
|
|
import superscript from '@ckeditor/ckeditor5-basic-styles/theme/icons/superscript.svg';
|
|
import superscript from '@ckeditor/ckeditor5-basic-styles/theme/icons/superscript.svg';
|
|
|
|
|
|
|
|
|
|
+import browseFiles from '@ckeditor/ckeditor5-ckfinder/theme/icons/browse-files.svg';
|
|
|
|
|
+
|
|
|
import codeBlock from '@ckeditor/ckeditor5-code-block/theme/icons/codeblock.svg';
|
|
import codeBlock from '@ckeditor/ckeditor5-code-block/theme/icons/codeblock.svg';
|
|
|
|
|
|
|
|
import cancel from '@ckeditor/ckeditor5-core/theme/icons/cancel.svg';
|
|
import cancel from '@ckeditor/ckeditor5-core/theme/icons/cancel.svg';
|
|
@@ -29,6 +26,13 @@ import check from '@ckeditor/ckeditor5-core/theme/icons/check.svg';
|
|
|
import eraser from '@ckeditor/ckeditor5-core/theme/icons/eraser.svg';
|
|
import eraser from '@ckeditor/ckeditor5-core/theme/icons/eraser.svg';
|
|
|
import lowVision from '@ckeditor/ckeditor5-core/theme/icons/low-vision.svg';
|
|
import lowVision from '@ckeditor/ckeditor5-core/theme/icons/low-vision.svg';
|
|
|
import image from '@ckeditor/ckeditor5-core/theme/icons/image.svg';
|
|
import image from '@ckeditor/ckeditor5-core/theme/icons/image.svg';
|
|
|
|
|
+import alignBottom from '@ckeditor/ckeditor5-core/theme/icons/align-bottom.svg';
|
|
|
|
|
+import alignMiddle from '@ckeditor/ckeditor5-core/theme/icons/align-middle.svg';
|
|
|
|
|
+import alignTop from '@ckeditor/ckeditor5-core/theme/icons/align-top.svg';
|
|
|
|
|
+import alignLeft from '@ckeditor/ckeditor5-core/theme/icons/align-left.svg';
|
|
|
|
|
+import alignCenter from '@ckeditor/ckeditor5-core/theme/icons/align-center.svg';
|
|
|
|
|
+import alignRight from '@ckeditor/ckeditor5-core/theme/icons/align-right.svg';
|
|
|
|
|
+import alignJustify from '@ckeditor/ckeditor5-core/theme/icons/align-justify.svg';
|
|
|
import objectLeft from '@ckeditor/ckeditor5-core/theme/icons/object-left.svg';
|
|
import objectLeft from '@ckeditor/ckeditor5-core/theme/icons/object-left.svg';
|
|
|
import objectCenter from '@ckeditor/ckeditor5-core/theme/icons/object-center.svg';
|
|
import objectCenter from '@ckeditor/ckeditor5-core/theme/icons/object-center.svg';
|
|
|
import objectRight from '@ckeditor/ckeditor5-core/theme/icons/object-right.svg';
|
|
import objectRight from '@ckeditor/ckeditor5-core/theme/icons/object-right.svg';
|
|
@@ -36,6 +40,7 @@ import objectFullWidth from '@ckeditor/ckeditor5-core/theme/icons/object-full-wi
|
|
|
import pencil from '@ckeditor/ckeditor5-core/theme/icons/pencil.svg';
|
|
import pencil from '@ckeditor/ckeditor5-core/theme/icons/pencil.svg';
|
|
|
import pilcrow from '@ckeditor/ckeditor5-core/theme/icons/pilcrow.svg';
|
|
import pilcrow from '@ckeditor/ckeditor5-core/theme/icons/pilcrow.svg';
|
|
|
import quote from '@ckeditor/ckeditor5-core/theme/icons/quote.svg';
|
|
import quote from '@ckeditor/ckeditor5-core/theme/icons/quote.svg';
|
|
|
|
|
+import threeVerticalDots from '@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';
|
|
|
|
|
|
|
|
import fontFamily from '@ckeditor/ckeditor5-font/theme/icons/font-family.svg';
|
|
import fontFamily from '@ckeditor/ckeditor5-font/theme/icons/font-family.svg';
|
|
|
import fontSize from '@ckeditor/ckeditor5-font/theme/icons/font-size.svg';
|
|
import fontSize from '@ckeditor/ckeditor5-font/theme/icons/font-size.svg';
|
|
@@ -60,17 +65,30 @@ import unlink from '@ckeditor/ckeditor5-link/theme/icons/unlink.svg';
|
|
|
|
|
|
|
|
import bulletedList from '@ckeditor/ckeditor5-list/theme/icons/bulletedlist.svg';
|
|
import bulletedList from '@ckeditor/ckeditor5-list/theme/icons/bulletedlist.svg';
|
|
|
import numberedList from '@ckeditor/ckeditor5-list/theme/icons/numberedlist.svg';
|
|
import numberedList from '@ckeditor/ckeditor5-list/theme/icons/numberedlist.svg';
|
|
|
|
|
+import todoList from '@ckeditor/ckeditor5-list/theme/icons/todolist.svg';
|
|
|
|
|
|
|
|
import media from '@ckeditor/ckeditor5-media-embed/theme/icons/media.svg';
|
|
import media from '@ckeditor/ckeditor5-media-embed/theme/icons/media.svg';
|
|
|
|
|
|
|
|
|
|
+import pageBreak from '@ckeditor/ckeditor5-page-break/theme/icons/pagebreak.svg';
|
|
|
|
|
+
|
|
|
import paragraph from '@ckeditor/ckeditor5-paragraph/theme/icons/paragraph.svg';
|
|
import paragraph from '@ckeditor/ckeditor5-paragraph/theme/icons/paragraph.svg';
|
|
|
|
|
|
|
|
import removeFormat from '@ckeditor/ckeditor5-remove-format/theme/icons/remove-format.svg';
|
|
import removeFormat from '@ckeditor/ckeditor5-remove-format/theme/icons/remove-format.svg';
|
|
|
|
|
|
|
|
|
|
+import contentLock from '@ckeditor/ckeditor5-restricted-editing/theme/icons/contentlock.svg';
|
|
|
|
|
+import contentUnlock from '@ckeditor/ckeditor5-restricted-editing/theme/icons/contentunlock.svg';
|
|
|
|
|
+
|
|
|
|
|
+import specialCharacters from '@ckeditor/ckeditor5-special-characters/theme/icons/specialcharacters.svg';
|
|
|
|
|
+
|
|
|
import table from '@ckeditor/ckeditor5-table/theme/icons/table.svg';
|
|
import table from '@ckeditor/ckeditor5-table/theme/icons/table.svg';
|
|
|
import tableRow from '@ckeditor/ckeditor5-table/theme/icons/table-row.svg';
|
|
import tableRow from '@ckeditor/ckeditor5-table/theme/icons/table-row.svg';
|
|
|
import tableColumn from '@ckeditor/ckeditor5-table/theme/icons/table-column.svg';
|
|
import tableColumn from '@ckeditor/ckeditor5-table/theme/icons/table-column.svg';
|
|
|
import tableMergeCell from '@ckeditor/ckeditor5-table/theme/icons/table-merge-cell.svg';
|
|
import tableMergeCell from '@ckeditor/ckeditor5-table/theme/icons/table-merge-cell.svg';
|
|
|
|
|
+import tableCellProperties from '@ckeditor/ckeditor5-table/theme/icons/table-cell-properties.svg';
|
|
|
|
|
+import tableProperties from '@ckeditor/ckeditor5-table/theme/icons/table-properties.svg';
|
|
|
|
|
+
|
|
|
|
|
+import nextArrow from '@ckeditor/ckeditor5-ui/theme/icons/next-arrow.svg';
|
|
|
|
|
+import previousArrow from '@ckeditor/ckeditor5-ui/theme/icons/previous-arrow.svg';
|
|
|
|
|
|
|
|
import undo from '@ckeditor/ckeditor5-undo/theme/icons/undo.svg';
|
|
import undo from '@ckeditor/ckeditor5-undo/theme/icons/undo.svg';
|
|
|
import redo from '@ckeditor/ckeditor5-undo/theme/icons/redo.svg';
|
|
import redo from '@ckeditor/ckeditor5-undo/theme/icons/redo.svg';
|
|
@@ -78,17 +96,20 @@ import redo from '@ckeditor/ckeditor5-undo/theme/icons/redo.svg';
|
|
|
import '../../theme/ckeditor5-ui/components/editorui/editorui.css';
|
|
import '../../theme/ckeditor5-ui/components/editorui/editorui.css';
|
|
|
|
|
|
|
|
const icons = {
|
|
const icons = {
|
|
|
- // alignment
|
|
|
|
|
- alignLeft, alignCenter, alignRight, alignJustify,
|
|
|
|
|
-
|
|
|
|
|
// basic-styles
|
|
// basic-styles
|
|
|
bold, italic, underline, code, strikethrough, subscript, superscript,
|
|
bold, italic, underline, code, strikethrough, subscript, superscript,
|
|
|
|
|
|
|
|
|
|
+ // ckfinder
|
|
|
|
|
+ browseFiles,
|
|
|
|
|
+
|
|
|
// code block
|
|
// code block
|
|
|
codeBlock,
|
|
codeBlock,
|
|
|
|
|
|
|
|
// core
|
|
// core
|
|
|
- check, cancel, eraser, lowVision, quote, image, objectLeft, objectCenter, objectRight, objectFullWidth, pencil, pilcrow,
|
|
|
|
|
|
|
+ alignTop, alignBottom, alignMiddle, alignLeft, alignCenter, alignRight,
|
|
|
|
|
+ alignJustify, cancel, check, eraser, image, lowVision, objectCenter,
|
|
|
|
|
+ objectFullWidth, objectLeft, objectRight, pencil, pilcrow, quote,
|
|
|
|
|
+ threeVerticalDots,
|
|
|
|
|
|
|
|
// font
|
|
// font
|
|
|
fontFamily, fontSize, fontColor, fontBackground,
|
|
fontFamily, fontSize, fontColor, fontBackground,
|
|
@@ -96,29 +117,42 @@ const icons = {
|
|
|
// heading
|
|
// heading
|
|
|
heading1, heading2, heading3, heading4, heading5, heading6,
|
|
heading1, heading2, heading3, heading4, heading5, heading6,
|
|
|
|
|
|
|
|
- // indent
|
|
|
|
|
- indent, outdent,
|
|
|
|
|
-
|
|
|
|
|
// highlight
|
|
// highlight
|
|
|
marker, pen,
|
|
marker, pen,
|
|
|
|
|
|
|
|
|
|
+ // indent
|
|
|
|
|
+ indent, outdent,
|
|
|
|
|
+
|
|
|
// link
|
|
// link
|
|
|
link, unlink,
|
|
link, unlink,
|
|
|
|
|
|
|
|
// list
|
|
// list
|
|
|
- bulletedList, numberedList,
|
|
|
|
|
|
|
+ bulletedList, numberedList, todoList,
|
|
|
|
|
|
|
|
// media-embed
|
|
// media-embed
|
|
|
media,
|
|
media,
|
|
|
|
|
|
|
|
|
|
+ // page-break
|
|
|
|
|
+ pageBreak,
|
|
|
|
|
+
|
|
|
// paragraph
|
|
// paragraph
|
|
|
paragraph,
|
|
paragraph,
|
|
|
|
|
|
|
|
// remove-format
|
|
// remove-format
|
|
|
removeFormat,
|
|
removeFormat,
|
|
|
|
|
|
|
|
|
|
+ // restricted-editing
|
|
|
|
|
+ contentLock, contentUnlock,
|
|
|
|
|
+
|
|
|
|
|
+ // special-characters
|
|
|
|
|
+ specialCharacters,
|
|
|
|
|
+
|
|
|
// table
|
|
// table
|
|
|
table, tableRow, tableColumn, tableMergeCell,
|
|
table, tableRow, tableColumn, tableMergeCell,
|
|
|
|
|
+ tableCellProperties, tableProperties,
|
|
|
|
|
+
|
|
|
|
|
+ // ui
|
|
|
|
|
+ nextArrow, previousArrow,
|
|
|
|
|
|
|
|
// undo
|
|
// undo
|
|
|
undo, redo
|
|
undo, redo
|