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

ckeditor5-build-classic-mention

v1.0.1

Published

The classic editor build of CKEditor 5 with mention

Readme

CKEditor 5 Classic with Mention Plugin

Ready-to-use CKEditor 5 Classic build with integrated @mention functionality

npm version npm downloads License: GPL-2.0

Why This Package?

The official CKEditor 5 Classic build doesn't include the Mention plugin by default. This package provides a pre-configured build with mention/autocomplete functionality ready to use out of the box.

Perfect for applications that need:

  • 🏷️ @mentions for users, tags, or custom entities
  • ⚡ Quick autocomplete without complex setup
  • 📦 Drop-in replacement for standard Classic build

Installation

npm install ckeditor5-build-classic-mention

Usage

With Module Bundler (Webpack, Vite, Rollup, etc.)

import ClassicEditor from 'ckeditor5-build-classic-mention';

ClassicEditor
  .create(document.querySelector('#editor'), {
    mention: {
      feeds: [{
        marker: '@',
        feed: ['@Alice', '@Bob', '@Charlie', '@David']
      }]
    }
  })
  .then(editor => {
    console.log('Editor ready!', editor);
  })
  .catch(error => {
    console.error('Error:', error);
  });

Direct Browser Usage (No Bundler)

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>CKEditor 5 with Mention</title>
</head>
<body>
  <div id="editor">
    <p>Type @ to mention someone!</p>
  </div>

  <script src="./node_modules/ckeditor5-build-classic-mention/build/ckeditor.js"></script>
  <script>
    ClassicEditor
      .create(document.querySelector('#editor'), {
        mention: {
          feeds: [{
            marker: '@',
            feed: ['@John', '@Sarah', '@Mike']
          }]
        }
      })
      .then(editor => {
        console.log('Editor ready!', editor);
      })
      .catch(error => {
        console.error('Error:', error);
      });
  </script>
</body>
</html>

Advanced Configuration

ClassicEditor
  .create(document.querySelector('#editor'), {
    mention: {
      feeds: [
        {
          marker: '@',
          feed: getFeedItems,
          itemRenderer: customItemRenderer,
          minimumCharacters: 1
        },
        {
          marker: '#',
          feed: ['#javascript', '#react', '#vue', '#angular']
        }
      ]
    }
  });

// Dynamic feed from API
function getFeedItems(queryText) {
  return fetch(`/api/users?search=${queryText}`)
    .then(response => response.json())
    .then(users => users.map(user => ({
      id: `@${user.username}`,
      name: user.fullName
    })));
}

// Custom item renderer
function customItemRenderer(item) {
  const span = document.createElement('span');
  span.classList.add('mention-item');
  span.textContent = `${item.id}`;
  if (item.name) {
    span.textContent += ` (${item.name})`;
  }
  return span;
}

Features Included

All standard CKEditor 5 Classic features:

  • Bold, Italic and other text formatting
  • Headings (H1-H6)
  • Lists (Bullet, Numbered)
  • Block quotes
  • Links
  • Images (upload, insert)
  • Tables
  • Media embed
  • + Mention Plugin ← The key addition!

Configuration Options

Mention Feed Options

| Option | Type | Description | |--------|------|-------------| | marker | string | Character that triggers mentions (e.g., @, #) | | feed | Array\|Function | Static array or function returning items | | minimumCharacters | number | Min characters before showing suggestions (default: 0) | | itemRenderer | Function | Custom function to render suggestion items |

For complete options, see CKEditor 5 Mention API.

Important Notes

⚠️ Maintenance Status: CKEditor 5 predefined builds have been deprecated by the CKEditor team. For new projects, consider using CKEditor 5 from source.

This package is maintained for:

  • Legacy projects that rely on predefined builds
  • Quick prototyping and testing
  • Developers who need mention functionality without build setup

Documentation & Resources

Alternatives for New Projects

If you're starting a new project, consider these modern approaches:

Troubleshooting

Module resolution errors

If you encounter Cannot find module 'ckeditor5-build-classic-mention':

  1. Ensure the package is installed: npm install ckeditor5-build-classic-mention
  2. Clear node_modules and reinstall: rm -rf node_modules && npm install

Mention not appearing

  1. Check that marker is configured correctly
  2. Ensure feed array/function returns valid items
  3. Verify minimumCharacters setting (default is 0)

License

GPL-2.0-or-later

This package is licensed under the GNU General Public License Version 2 or later. For full details, see LICENSE.md or CKEditor OSS License.

Author & Contributing

Created and maintained by Artem Bilenko (@Brilux)

Issues and pull requests are welcome!

  1. Report bugs or request features
  2. Submit pull requests
  3. Star the repo if you find it useful ⭐

Built with ❤️ for developers who need mention functionality without the build complexity