PHPackages                             levmyshkin/ckeditor5-textselection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. levmyshkin/ckeditor5-textselection

ActiveDrupal-library[Utility &amp; Helpers](/categories/utility)

levmyshkin/ckeditor5-textselection
==================================

A plugin that makes CKEditor 5 keep its text selection when switching between Visual and Source mode.

1.0.1(1mo ago)038↓21.1%GPL-2.0JavaScriptCI passing

Since May 2Pushed 1mo agoCompare

[ Source](https://github.com/levmyshkin/ckeditor5-textselection)[ Packagist](https://packagist.org/packages/levmyshkin/ckeditor5-textselection)[ RSS](/packages/levmyshkin-ckeditor5-textselection/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

CKEditor 5 Text Selection Plugin
================================

[](#ckeditor-5-text-selection-plugin)

A plugin that makes the editor keep its text selection when switching between WYSIWYG and Source mode, and scrolls the selection into the viewport.

Inspired by the [CKEditor Text Selection plugin](https://ckeditor.com/cke4/addon/textselection).

This plugin also works with the [CKEditor 5 CodeMirror Source Editing](https://github.com/cdubz/ckeditor5-source-editing-codemirror) plugin.

Demo
----

[](#demo)

Open `demo/index.html` in a browser to try the plugin with CKEditor 5 loaded from CDN. Select text, toggle **Source** mode, and see the selection preserved.

[Demo CKEditor TextSelection](https://levmyshkin.github.io/ckeditor5-textselection/)

License
-------

[](#license)

Licensed under the terms of the [GPL-2.0 License](LICENSE).

Structure
---------

[](#structure)

```
ckeditor5-textselection/
├── build/                   # Compiled JS bundle (output of webpack)
│   └── textSelection.js
├── src/                     # Plugin source code
│   ├── index.js             # Plugin entry point (exports default object)
│   └── textselection.js     # Plugin implementation
├── package.json
└── webpack.config.js

```

Building
--------

[](#building)

The webpack build uses the CKEditor 5 **DLL Reference Plugin** to integrate with Drupal's CKEditor 5 DLL system. Instead of bundling CKEditor 5 core modules, the built file delegates to `CKEditor5.dll` at runtime — the shared library that Drupal core provides on every page with a CKEditor 5 instance.

The DLL manifest (`ckeditor5-dll.manifest.json`) is sourced from the `ckeditor5`npm package which is included as a dev dependency.

```
npm install
npm run build        # production (minified)
npm run build:dev    # development (unminified)
npm run watch        # watch mode
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance92

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

38d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1680925?v=4)[Ivan Abramenko](/maintainers/levmyshkin)[@levmyshkin](https://github.com/levmyshkin)

---

Top Contributors

[![levmyshkin](https://avatars.githubusercontent.com/u/1680925?v=4)](https://github.com/levmyshkin "levmyshkin (8 commits)")

### Embed Badge

![Health badge](/badges/levmyshkin-ckeditor5-textselection/health.svg)

```
[![Health](https://phpackages.com/badges/levmyshkin-ckeditor5-textselection/health.svg)](https://phpackages.com/packages/levmyshkin-ckeditor5-textselection)
```

###  Alternatives

[blackknight467/star-rating-bundle

Star Rating Bundle for use with Symfony 2 using Font Awesome. This bundle adds the 'rating' form type and rating filter to render ratings. Simple and easy to use.

27200.3k](/packages/blackknight467-star-rating-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
