How to use the @ckeditor/ckeditor5-editor-classic/src/classic.create function in @ckeditor/ckeditor5-editor-classic

To help you get started, we’ve selected a few @ckeditor/ckeditor5-editor-classic examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ckeditor / ckeditor5-engine / tests / dev-utils / manual / graphicalmodelrepresentation.js View on Github external
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' ]

@ckeditor/ckeditor5-editor-classic

Classic editor implementation for CKEditor 5.

SEE LICENSE IN LICENSE.md
Latest version published 6 days ago

Package Health Score

86 / 100
Full package analysis