Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import TypingPlugin from '@ckeditor/ckeditor5-typing/src/typing';
import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
import ImagePlugin from '@ckeditor/ckeditor5-image/src/image';
import ImageToolbar from '@ckeditor/ckeditor5-image/src/imagetoolbar';
import ImageStyle from '@ckeditor/ckeditor5-image/src/imagestyle/imagestyle';
import UndoPlugin from '@ckeditor/ckeditor5-undo/src/undo';
import ClipboardPlugin from '@ckeditor/ckeditor5-clipboard/src/clipboard';
import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
import graphicalModelRepresentation from '../../../src/dev-utils/graphicalmodelrepresentation';
import './graphicalmodelrepresentation.scss';
ClassicEditor.create( document.querySelector( '#editor' ), {
plugins: [
EnterPlugin,
TypingPlugin,
ParagraphPlugin,
HeadingPlugin,
ImagePlugin,
ImageStyle,
ImageToolbar,
UndoPlugin,
ClipboardPlugin,
BoldPlugin,
ItalicPlugin,
ListPlugin,
LinkPlugin
],
toolbar: [ 'headings', 'undo', 'redo', 'bold', 'italic', 'bulletedList', 'numberedList', 'link', 'unlink' ]