/** * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ import DecoupledDocumentEditor from '../../build/ckeditor'; const editorData = `
This is CKEditor 5.
After more than 2 years of building the next generation editor from scratch and closing over 980 tickets, we created a highly extensible and flexible architecture which consists of an amazing editing framework and editing solutions that will be built on top of it.
We explained this design choice in “CKEditor 5: The future of rich text editing“:
(…) we are changing our approach with CKEditor 5. We will no longer have only two solutions available, instead CKEditor will be seen as a framework for editing solutions. At the same time, we will be developing several out-of-the-box solutions based on it, which will be available to use in many different contexts. It will be a real “one size fits all” approach, from little requirements, to super advanced full featured applications.
CKEditor 5 is under heavy development and this demo is not production-ready software. For example:
It has bugs that we are aware of — and that we will be working on in the next few iterations of the project. Stay tuned for some updates soon!
`; DecoupledDocumentEditor .create( editorData, { toolbarContainer: '.toolbar-container', editableContainer: '.editable-container', } ) .then( editor => { window.editor = editor; } ) .catch( err => { console.error( err.stack ); } );