@soszoro/zoroeditor5-build-classic

1.1.2 • Public • Published

CKEditor 5 classic editor build

Quick start

First, install the build from npm:

npm install --save @soszoro/zoroeditor5-build-classic

And use it in your website:

<div id="editor">
	<p>This is the editor content.</p>
</div>
<script src="./node_modules/@soszoro/zoroeditor5-build-classic/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 '@soszoro/zoroeditor5-build-classic';

// Or using the CommonJS version:
// const ClassicEditor = require( '@soszoro/zoroeditor5-build-classic' );

ClassicEditor
	.create( document.querySelector( '#editor' ) )
	.then( editor => {
		window.editor = editor;
	} )
	.catch( error => {
		console.error( 'There was a problem initializing the editor.', error );
	} );

Package Sidebar

Install

npm i @soszoro/zoroeditor5-build-classic

Weekly Downloads

0

Version

1.1.2

License

GPL-2.0-or-later

Unpacked Size

7.17 MB

Total Files

68

Last publish

Collaborators

  • samad.s