This package (`ckeditor5-custom-build`) is a foundational repository generated by the CKEditor 5 Online Builder tool, providing a customizable starting point for a rich-text editor. It is not a directly consumable NPM library but rather the source code and build configuration for a tailored CKEditor 5 instance. As a custom build, its version (0.0.6) reflects its initial state as a template, with no regular release cadence for this specific package. Users are expected to modify, build, and integrate the output into their applications. Key differentiators include the ability to hand-pick features and plugins from the CKEditor 5 ecosystem and self-host the resulting editor, offering complete control over the bundle size and included functionalities, contrasting with pre-built distributions like `@ckeditor/ckeditor5-build-classic`. It's primarily intended for web applications that need a highly specific rich-text editing experience, allowing for granular control over toolbar items, plugin configurations, and overall editor behavior.
npm install ckeditor5-custom-buildVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to include and initialize a custom CKEditor 5 classic build in a basic HTML page. It assumes the project has been built via `npm run build`, creating `build/ckeditor.js` and `build/ckeditor.css`.
After cloning or downloading the custom build, navigate to its directory and run `npm install && npm run build`. Then, integrate the generated files from the `build/` directory into your application.
For new projects or major upgrades, consider migrating to the latest CKEditor 5 installation methods that utilize `npm` packages directly (e.g., `@ckeditor/ckeditor5`) instead of relying on custom build repositories from the deprecated online builder.
Obtain the necessary license key or backend service endpoints from CKEditor.com and ensure they are correctly configured during editor initialization, typically via the `config` object passed to `ClassicEditor.create()`.
After running `npm run build`, perform a hard refresh in your browser (Ctrl + R or Cmd + R) or clear your browser's cache to ensure the latest editor bundle is loaded.
For framework integration, developers typically need to create their own wrappers or components that import the generated `build/ckeditor.js` bundle and initialize the editor manually within the framework's lifecycle. Official CKEditor 5 documentation provides guides for framework integration.
Ensure that `<script src="./build/ckeditor.js"></script>` is correctly placed in your HTML, preferably right before the script that calls `ClassicEditor.create()`, and that the path to `ckeditor.js` is correct. Verify `npm run build` ran successfully.
This package is a *source* repository for a build. You should import the *generated output* from your `build/` directory (e.g., `import ClassicEditor from './path/to/build/ckeditor.js';`) or load it via a `<script>` tag.
Obtain a license key from CKEditor.com and pass it in the editor configuration: `ClassicEditor.create( element, { licenseKey: 'YOUR_LICENSE_KEY' } )`.Provide the necessary collaboration configuration: `ClassicEditor.create( element, { collaboration: { channelId: 'my-document-id', webSocketUrl: 'ws://localhost:3000' } } )`.