37.0.1 • Published 2 years ago

@samhammer/hd-ckeditor5-build-classic v37.0.1

Weekly downloads
143
License
GPL-2.0-or-later
Repository
github
Last release
2 years ago

CKEditor 5 classic editor build

npm version

The classic editor build for HD.

Installation

First, install the build from npm:

npm install --save @samhammer/hd-ckeditor5-build-classic

And use it in your website:

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

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

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

Local development

To test your changes to this build locally with the application you can use npm link.

Publish new version

  1. Apply all changes to the source files.
  2. Run npm run build.
  3. The compiled files are located in the "build" folder now.
  4. Raise the version-number in package.json.
  5. Commit all changes and create a git tag with the specific version number.
  6. Run npm publish --access public to publish the compiled source as new package version to npm. This step can only be done from a member of the "Samhammer" npm Org.
  7. Install the new package version in the application as dependency.

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.