1.0.0 • Published 3 years ago
lesley-ckeditor5 v1.0.0
lesley personal ckeditor
add Alignment, Font plugin.
Quick start
First, install the build from npm:
npm install --save lesley-ckeditor5
And use it in your website:
<div id="editor">
<p>This is the editor content.</p>
</div>
<script src="./node_modules/lesley-ckeditor5/build/ckeditor.js"></script>
<script>
ClassicEditor
.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 ClassicEditor from 'lesley-ckeditor5';
// Or using the CommonJS version:
// const ClassicEditor = require( 'lesley-ckeditor5' );
ClassicEditor
.create( document.querySelector( '#editor' ) )
.then( editor => {
window.editor = editor;
} )
.catch( error => {
console.error( 'There was a problem initializing the editor.', error );
} );
1.0.0
3 years ago