0.0.7 • Published 12 months ago
ckeditor5-customized v0.0.7
CKEditor 5 editor generated with the online builder
This repository presents a CKEditor 5 editor build generated by the Online builder tool and implemented some new plugins
Quick start
- Install dependencies
yarn
- Rebuilding editor
yarn build
- Open the
sample/index.html
page in the browser.
Adding or removing plugins
Now you can install additional plugin in the build. Just follow the Adding a plugin to an editor tutorial
Extra Plugins
Fullscreen
Format Painter
How to use it
npm install ckeditor5-customized -S
<div>
<div id="toolbar"></div>
<div id="editor"></div>
</div>
import DecoupledEditor from 'ckeditor5-customized';
const editorContainer = document.getElementById('editor');
const editorConfig = {};
DecoupledEditor.create(editorContainer, editorConfig).then(editor => {
const toolbarContainer = document.getElementById('#toolbar');
toolbarContainer.appendChild(editor.ui.view.toolbar.element);
editor.setData('<p>foo</p>')
})