ckeditor5-build-strapi-wysiwyg provides an enhanced, pre-configured CKEditor 5 build specifically designed to replace the default WYSIWYG editor within Strapi applications. This package currently ships at version 2.1.1 and receives updates tied both to new features introduced by its maintainers (e.g., Source HTML editing, fullscreen mode, improved Strapi Media Library integration) and significant updates to the core CKEditor 5 library. Its key differentiators include direct integration with the Strapi Media Library for image uploads and access, a more extensive feature set compared to the standard CKEditor 5 Classic build, and a custom build tailored for the Strapi ecosystem, often used in conjunction with `strapi-plugin-ckeditor5`. Development activity is consistent, with releases occurring every few months to incorporate new CKEditor 5 versions and bug fixes.
npm install ckeditor5-build-strapi-wysiwygVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import and initialize the Strapi WYSIWYG editor build on a DOM element, including a sample toolbar configuration and initial content setting.
Upgrade to `ckeditor5-build-strapi-wysiwyg` v2.x or newer and ensure your Strapi application is also upgraded to Strapi v4 or later.
For minor configuration changes (e.g., toolbar items), pass options to the `create` method. For significant structural changes to the editor's features, consider forking the repository or building your own CKEditor 5 from scratch.
It is highly recommended to use the official `strapi-plugin-ckeditor5` package for integrating this build into your Strapi application, as it handles the necessary setup and wiring for optimal functionality.
Ensure you are using `import StrapiWysiwygEditor from 'ckeditor5-build-strapi-wysiwyg';` at the top of your JavaScript file and that your build process correctly handles ES Modules.
Verify that the HTML element (e.g., `<div id="editor"></div>`) exists in your document and that `StrapiWysiwygEditor.create()` is called after the DOM is fully loaded (e.g., inside `DOMContentLoaded` event listener).
If using the `strapi-plugin-ckeditor5`, ensure it's correctly installed and configured in your Strapi project. If integrating manually, verify that the upload adapter configuration for CKEditor 5 is correctly pointing to your Strapi upload endpoint and that necessary authentication is handled.