Skip to content

Instantly share code, notes, and snippets.

@Mds92
Last active November 10, 2020 07:55
Show Gist options
  • Save Mds92/0799f201d7d000eeef925627c9fa81bc to your computer and use it in GitHub Desktop.
Save Mds92/0799f201d7d000eeef925627c9fa81bc to your computer and use it in GitHub Desktop.
{
"name": "@ckeditor/ckeditor5-build-classic-mds",
"version": "0.1.0",
"description": "The classic editor build of CKEditor 5 – the best browser-based rich text editor.",
"keywords": [
"ckeditor5-build",
"ckeditor",
"ckeditor5",
"ckeditor 5",
"wysiwyg",
"rich text",
"editor",
"html",
"contentEditable",
"editing",
"operational transformation",
"ot",
"collaboration",
"collaborative",
"real-time",
"framework"
],
"main": "./build/ckeditor.js",
"files": [
"build"
],
"devDependencies": {
"@ckeditor/ckeditor5-alignment": "^23.1.0",
"@ckeditor/ckeditor5-autoformat": "^23.1.0",
"@ckeditor/ckeditor5-basic-styles": "^23.1.0",
"@ckeditor/ckeditor5-block-quote": "^23.1.0",
"@ckeditor/ckeditor5-ckfinder": "^23.1.0",
"@ckeditor/ckeditor5-clipboard": "^23.1.0",
"@ckeditor/ckeditor5-core": "^23.1.0",
"@ckeditor/ckeditor5-dev-utils": "^23.6.1",
"@ckeditor/ckeditor5-dev-webpack-plugin": "^23.6.1",
"@ckeditor/ckeditor5-easy-image": "^23.1.0",
"@ckeditor/ckeditor5-editor-classic": "^23.1.0",
"@ckeditor/ckeditor5-enter": "^23.1.0",
"@ckeditor/ckeditor5-essentials": "^23.1.0",
"@ckeditor/ckeditor5-font": "^23.1.0",
"@ckeditor/ckeditor5-heading": "^23.1.0",
"@ckeditor/ckeditor5-highlight": "^23.1.0",
"@ckeditor/ckeditor5-horizontal-line": "^23.1.0",
"@ckeditor/ckeditor5-image": "^23.1.0",
"@ckeditor/ckeditor5-indent": "^23.1.0",
"@ckeditor/ckeditor5-link": "^23.1.0",
"@ckeditor/ckeditor5-list": "^23.1.0",
"@ckeditor/ckeditor5-markdown-gfm": "^23.1.0",
"@ckeditor/ckeditor5-media-embed": "^23.1.0",
"@ckeditor/ckeditor5-paragraph": "^23.1.0",
"@ckeditor/ckeditor5-paste-from-office": "^23.1.0",
"@ckeditor/ckeditor5-remove-format": "^23.1.0",
"@ckeditor/ckeditor5-select-all": "^23.1.0",
"@ckeditor/ckeditor5-special-characters": "^23.1.0",
"@ckeditor/ckeditor5-table": "^23.1.0",
"@ckeditor/ckeditor5-theme-lark": "^23.1.0",
"@ckeditor/ckeditor5-typing": "^23.1.0",
"@ckeditor/ckeditor5-ui": "^23.1.0",
"@ckeditor/ckeditor5-undo": "^23.1.0",
"@ckeditor/ckeditor5-utils": "^23.1.0",
"@ckeditor/ckeditor5-word-count": "^23.1.0",
"lint-staged": "^10.5.1",
"postcss-loader": "^3.0.0",
"raw-loader": "^4.0.1",
"style-loader": "^1.2.1",
"terser-webpack-plugin": "^3.0.2",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
"engines": {
"node": ">=12.0.0",
"npm": ">=5.7.1"
},
"author": "CKSource (http://cksource.com/)",
"license": "GPL-2.0-or-later",
"homepage": "https://ckeditor.com/ckeditor-5",
"bugs": "https://github.com/ckeditor/ckeditor5/issues",
"repository": {
"type": "git",
"url": "https://github.com/ckeditor/ckeditor5.git",
"directory": "packages/ckeditor5-build-classic"
},
"scripts": {
"build": "webpack --mode production",
"preversion": "npm run build"
}
}
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
// The editor creator to use.
import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
import Code from '@ckeditor/ckeditor5-basic-styles/src/code';
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
import Strikethrough from '@ckeditor/ckeditor5-basic-styles/src/strikethrough';
import Subscript from '@ckeditor/ckeditor5-basic-styles/src/subscript';
import Superscript from '@ckeditor/ckeditor5-basic-styles/src/superscript';
import Underline from '@ckeditor/ckeditor5-basic-styles/src/Underline';
import BlockQuote from '@ckeditor/ckeditor5-block-quote/src/blockquote';
import BlockQuoteEditing from '@ckeditor/ckeditor5-block-quote/src/blockquoteediting';
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
import PastePlainText from '@ckeditor/ckeditor5-clipboard/src/pasteplaintext';
import EasyImage from '@ckeditor/ckeditor5-easy-image/src/easyimage';
import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
import Font from '@ckeditor/ckeditor5-font/src/font';
import FontBackgroundColor from '@ckeditor/ckeditor5-font/src/fontbackgroundcolor';
import FontColor from '@ckeditor/ckeditor5-font/src/fontcolor';
import FontFamily from '@ckeditor/ckeditor5-font/src/fontfamily';
import FontSize from '@ckeditor/ckeditor5-font/src/fontsize';
import Heading from '@ckeditor/ckeditor5-heading/src/heading';
import HeadingUI from '@ckeditor/ckeditor5-heading/src/headingui';
import Highlight from '@ckeditor/ckeditor5-highlight/src/highlight';
import HighlightUI from '@ckeditor/ckeditor5-highlight/src/highlightui';
import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline';
import HorizontalLineUI from '@ckeditor/ckeditor5-horizontal-line/src/horizontallineui';
import Image from '@ckeditor/ckeditor5-image/src/image';
import ImageCaption from '@ckeditor/ckeditor5-image/src/imagecaption';
import ImageInsert from '@ckeditor/ckeditor5-image/src/imageinsert';
import ImageResize from '@ckeditor/ckeditor5-image/src/imageresize';
import ImageStyle from '@ckeditor/ckeditor5-image/src/imagestyle';
import ImageTextAlternative from '@ckeditor/ckeditor5-image/src/imagetextalternative';
import ImageToolbar from '@ckeditor/ckeditor5-image/src/imagetoolbar';
import Indent from '@ckeditor/ckeditor5-indent/src/indent';
import IndentUI from '@ckeditor/ckeditor5-indent/src/indentui';
import Link from '@ckeditor/ckeditor5-link/src/link';
import LinkImage from '@ckeditor/ckeditor5-link/src/linkimage';
import LinkImageUI from '@ckeditor/ckeditor5-link/src/linkimageui';
import LinkUI from '@ckeditor/ckeditor5-link/src/linkui';
import List from '@ckeditor/ckeditor5-list/src/list';
import ListStyle from '@ckeditor/ckeditor5-list/src/liststyle';
import ListStyleUI from '@ckeditor/ckeditor5-list/src/liststyleui';
import ListUI from '@ckeditor/ckeditor5-list/src/listui';
import TodoList from '@ckeditor/ckeditor5-list/src/todolist';
import TodoListUI from '@ckeditor/ckeditor5-list/src/todolistui';
import Markdown from '@ckeditor/ckeditor5-markdown-gfm/src/markdown';
import MediaEmbed from '@ckeditor/ckeditor5-media-embed/src/mediaembed';
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import ParagraphButtonUI from '@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui';
import PasteFromOffice from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice';
import RemoveFormat from '@ckeditor/ckeditor5-remove-format/src/removeformat';
import RemoveFormatUI from '@ckeditor/ckeditor5-remove-format/src/removeformatui';
import SelectAll from '@ckeditor/ckeditor5-select-all/src/selectall';
import SelectAllUI from '@ckeditor/ckeditor5-select-all/src/selectallui';
import SpecialCharacters from '@ckeditor/ckeditor5-special-characters/src/specialcharacters';
import SpecialCharactersArrows from '@ckeditor/ckeditor5-special-characters/src/specialcharactersarrows';
import SpecialCharactersCurrency from '@ckeditor/ckeditor5-special-characters/src/specialcharacterscurrency';
import SpecialCharactersEssentials from '@ckeditor/ckeditor5-special-characters/src/specialcharactersessentials';
import SpecialCharactersLatin from '@ckeditor/ckeditor5-special-characters/src/specialcharacterslatin';
import SpecialCharactersMathematical from '@ckeditor/ckeditor5-special-characters/src/specialcharactersmathematical';
import SpecialCharactersText from '@ckeditor/ckeditor5-special-characters/src/specialcharacterstext';
import Table from '@ckeditor/ckeditor5-table/src/table';
import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties';
import TableEditing from '@ckeditor/ckeditor5-table/src/tableediting';
import TableMouse from '@ckeditor/ckeditor5-table/src/tablemouse';
import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties';
import TableSelection from '@ckeditor/ckeditor5-table/src/tableselection';
import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar';
import TableUI from '@ckeditor/ckeditor5-table/src/tableui';
import TextTransformation from '@ckeditor/ckeditor5-typing/src/texttransformation';
export default class ClassicEditor extends ClassicEditorBase {}
// Plugins to include in the build.
ClassicEditor.builtinPlugins = [
Essentials,
Autoformat,
Alignment,
Bold,
Italic,
Code,
Strikethrough,
Subscript,
Superscript,
Underline,
BlockQuote,
BlockQuoteEditing,
Clipboard,
FontFamily,
FontSize,
Font,
FontBackgroundColor,
FontColor,
PastePlainText,
EasyImage,
Heading,
HeadingUI,
Highlight,
HighlightUI,
HorizontalLine,
HorizontalLineUI,
Image,
ImageCaption,
ImageStyle,
ImageToolbar,
ImageStyle,
ImageResize,
ImageInsert,
ImageTextAlternative,
Indent,
IndentUI,
Link,
LinkUI,
LinkImage,
LinkImageUI,
List,
ListUI,
TodoList,
TodoListUI,
ListStyle,
ListStyleUI,
Markdown,
MediaEmbed,
Paragraph,
ParagraphButtonUI,
RemoveFormat,
RemoveFormatUI,
SelectAll,
SelectAllUI,
PasteFromOffice,
SpecialCharactersText,
SpecialCharactersMathematical,
SpecialCharactersLatin,
SpecialCharactersEssentials,
SpecialCharactersCurrency,
SpecialCharactersArrows,
SpecialCharacters,
Table,
TableToolbar,
TableCellProperties,
TableEditing,
TableMouse,
TableProperties,
TableSelection,
TableUI,
TextTransformation
];
// Editor configuration.
ClassicEditor.defaultConfig = {
toolbar: {
items: [
'heading',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'|',
'indent',
'outdent',
'|',
'imageUpload',
'blockQuote',
'insertTable',
'mediaEmbed',
'undo',
'redo'
]
},
image: {
toolbar: [
'imageStyle:full',
'imageStyle:side',
'|',
'imageTextAlternative'
]
},
table: {
contentToolbar: [
'tableColumn',
'tableRow',
'mergeTableCells'
]
},
// This value must be kept in sync with the language defined in webpack.config.js.
language: 'en'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment