@gecharita/ckeditor5-super-build
v1.1.1-0.4-link
Published
Super Build: CKEditor 5 classic & inline with extra plugins
Downloads
103
Maintainers
Readme
CKEditor 5 classic editor build combined with added Inline editor
Superbuild by gecharita
That project is a fork of the CKEditor 5 Classic with the option to use CKEditor 5 Inline & extra plugins.
Quick start
And use it in your website:
<div id="editor">
<p>This is the editor content.</p>
</div>
<script src="/build/ckeditor.js"></script>
<script>
CKEDITOR.ClassicEditor
.create( document.querySelector( '#classic-editor' ) )
.then( editor => {
window.editor = editor;
} )
.catch( error => {
console.error( 'There was a problem initializing the editor.', error );
} );
</script>
<script>
CKEDITOR.InlineEditor
.create( document.querySelector( '#inline-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 CKEDITOR from '@ckeditor/ckeditor5-build-classic';
// Or using the CommonJS version:
// const ClassicEditor = require( '@ckeditor/ckeditor5-build-classic' );
CKEDITOR.ClassicEditor
.create( document.querySelector( '#editor' ) )
.then( editor => {
window.editor = editor;
} )
.catch( error => {
console.error( 'There was a problem initializing the editor.', error );
} );
Custom build
# Add a plugin if not exists e.g. https://www.npmjs.com/package/@ckeditor/ckeditor5-font
# SEE how it is used https://ckeditor.com/docs/ckeditor5/latest/features/font.html
npm install --save-dev @ckeditor/ckeditor5-font
# Build
yarn run build
Note: If you are planning to integrate CKEditor 5 deep into your application, it is actually more convenient and recommended to install and import the source modules directly (like it happens in ckeditor.js
). Read more in the Advanced setup guide.
License
Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md
file or https://ckeditor.com/legal/ckeditor-oss-license.