@join2sail/ckeditor5-build
v1.0.0
Published
The custom editor build of CKEditor 5
Downloads
1
Readme
CKEditor 5 custom editor build
Quick start
First, install the build from npm:
npm install --save @join2sail/ckeditor5-build
And use it in your website:
<div id="editor">
<p>This is the editor content.</p>
</div>
<script src="./node_modules/@join2sail/ckeditor5-build/build/ckeditor.js"></script>
<script>
CustomEditor
.create(document.querySelector('#editor'))
.then(editor => {
window.editor = editor;
})
.catch(error => {
console.error('There was a problem initializing the editor.', error);
});
</script>
Or in your JavaScript application:
import CustomEditor from '@join2sail/ckeditor5-build';
// Or using the CommonJS version:
// const CustomEditor = require('@join2sail/ckeditor5-build');
CustomEditor
.create(document.querySelector('#editor'))
.then(editor => {
window.editor = editor;
})
.catch(error => {
console.error('There was a problem initializing the editor.', error);
});