npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@magnolia/ckeditor5-build

v2.0.0

Published

Magnolia CKEditor 5 plugins enable editors to link pages and assets from Magnolia into rich text content, as well as to embed assets.

Readme

Custom CKEditor 5 editor built for integration with Magnolia

Installation

In order to rebuild the application you need to install all dependencies first. To do it, open the terminal in the project directory and type:

npm install

Make sure that you have the node and npm installed first. If not, then follow the instructions on the Node.js documentation page.

Adding or removing plugins

You can add new plugin by two common ways that have the same result:

  1. Use npm install command, e.g:

    npm install @ckeditor/[email protected] --save

  2. Or manually add the plugin to the dependencies section of the packages/ckeditor5-build/package.json

    "dependencies": {
      //other dependencies ...
      "@ckeditor/ckeditor5-highlight": "^41.2.1"
    }

To remove the plugin, simply remove it out of the dependencies section and run npm install command

Importing plugins to the CKEDITOR build

You can import any installed plugins to CKEDITOR build by following steps:

  1. Locate the ckeditor5.ts under packages/ckeditor5-build/src
  2. Add import statement to the ckeditor5.ts, e.g:
       import { Highlight } from '@ckeditor/ckeditor5-highlight';

Rebuilding editor

If you have already done the Installation and Adding or removing plugins steps, you're ready to rebuild the editor by running the following command:

npm run build

This will build the CKEditor 5 to the build directory. You can open your browser and you should be able to see the changes you've made in the code. If not, then try to refresh also the browser cache by typing Ctrl + R or Cmd + R depending on your system.

Local development

To develop CKEditor5 build and plugins and make them available to use in your Magnolia instance

  1. Install and build the package:

    1. npm install && npm run build
    2. npm run start, now the package is accessible via http://127.0.0.1:9090/ckeditor5.js or http://localhost:9090/ckeditor5.js
  2. Inject the build to Magnolia Rich Text Field powered by CkEditor 5

    1. Configure the microprofile property magnolia.ckeditor5.build with the url to the running package, e.g: magnolia.ckeditor5.build=http://localhost:9090/ckeditor5.js. Note that, any change to your build will be watched and be in time updated.
    2. Run your instance

    The application will be rebuilt on-the-fly after any change. Please note that build/ckeditor.js is only rebuilt when running npm run build.

Customize build

To customize CKEditor5 build and plugins and make it available to use in your Magnolia instance

  1. Install and build the package
    1. npm install && npm run build
  2. Inject the build to Magnolia Rich Text Field powered by CkEditor 5
    1. Find the ckeditor5.js file under packages/ckeditor5-build/build
    2. Place the ckeditor5.js file in your light-module/websresources. E.g light-modules/module-lm/webresources/
    3. Config the magnolia.ckeditor5.build property with the path to the ckeditor5.js. E.g: -Dmagnolia.ckeditor5.build=light-module/module-lm/webresources/ckeditor5.js
  3. Run your instance

Debugging

To debug the CKEditor 5 instance on your browser, you need to attach that instance to the ckeditor-inspector.

Prerequisite: https://unpkg.com/@ckeditor/ckeditor5-inspector/build/inspector.js is attached to the field.

  1. In the browser, create a bookmark on the Bookmark bar
  2. In the Name field, fill anything you want, e.g. CKEditor Inspector
  3. In the Url field, copy and paste the code below
javascript:(function(){
    let script=document.createElement('script');
    script.src='https://unpkg.com/@ckeditor/ckeditor5-inspector/build/inspector.js';
    script.onload=()=> {
        CKEditorInspector.attachToAll();

        setTimeout(() => {
            const inspectorContainer = document.querySelector('.ck-inspector');
            if (inspectorContainer) {
                inspectorContainer.style.zIndex = '10000';
            }
        }, 1000);
    };
    document.head.appendChild(script);
})()
  1. Then click Save
  2. Open the form, which contains ckeditor5 fields, then click to the saved bookmark, let's says CKEditor Inspector, et voila, you will notice there is a small toolbar at the bottom of the page.