PHPackages                             drmartingonzo/ss-tinymce-charcount - 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. drmartingonzo/ss-tinymce-charcount

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

drmartingonzo/ss-tinymce-charcount
==================================

Plugin for tinyMCE in siverstripe to count characters

1.1.1(7y ago)07.0k↓75%1BSD-3-ClauseJavaScript

Since Apr 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/DrMartinGonzo/ss-tinymce-charcount)[ Packagist](https://packagist.org/packages/drmartingonzo/ss-tinymce-charcount)[ RSS](/packages/drmartingonzo-ss-tinymce-charcount/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Silverstripe 4 TinyMCE characters count
=======================================

[](#silverstripe-4-tinymce-characters-count)

[![Screenshot of TinyMCE plugin](https://github.com/DrMartinGonzo/ss-tinymce-charcount/raw/master/screenshot.png "Screenshot")](https://github.com/DrMartinGonzo/ss-tinymce-charcount/blob/master/screenshot.png)

Installation
------------

[](#installation)

`composer require drmartingonzo/ss-tinymce-charcount ^1.1.0`

Requirements
------------

[](#requirements)

- SilverStripe CMS ^4.0

Enable plugin
-------------

[](#enable-plugin)

In your \_config.php file, add :

```
use SilverStripe\Forms\HTMLEditor\HtmlEditorConfig;
use SilverStripe\Core\Manifest\ModuleResourceLoader;

```

Then add whatever plugins you wish to enable, + charcount

```
HtmlEditorConfig::get('cms')
->enablePlugins([
    'template',
    'fullscreen',
    'hr',
    'contextmenu',
    'charmap',
    'visualblocks',
    'lists',
    'charcount' => ModuleResourceLoader::resourceURL('drmartingonzo/ss-tinymce-charcount:client/dist/js/bundle.js'),
])

```

Finally run `dev/build` with flush to remove previous TinyMCE javascript cache.

Adding a max character attribute to a TinyMCE instance
------------------------------------------------------

[](#adding-a-max-character-attribute-to-a-tinymce-instance)

Set `data-maxchar` on HTMLEditorField. Example :

```
HTMLEditorField::create(
    "Content",
    'Content'
)->setAttribute('data-maxchar', 526),

```

Adding a max word attribute to a TinyMCE instance
-------------------------------------------------

[](#adding-a-max-word-attribute-to-a-tinymce-instance)

Set `data-maxword` on HTMLEditorField. Example :

```
HTMLEditorField::create(
    "Content",
    'Content'
)->setAttribute('data-maxword', 120),

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~188 days

Total

3

Last Release

2584d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a96fc1235601ff39931a583880c8e2ae4c6f7db5b5c734db19b65004668c192?d=identicon)[DrMartinGonzo](/maintainers/DrMartinGonzo)

---

Top Contributors

[![DrMartinGonzo](https://avatars.githubusercontent.com/u/11061711?v=4)](https://github.com/DrMartinGonzo "DrMartinGonzo (5 commits)")

---

Tags

silverstripetinymcecharacters

### Embed Badge

![Health badge](/badges/drmartingonzo-ss-tinymce-charcount/health.svg)

```
[![Health](https://phpackages.com/badges/drmartingonzo-ss-tinymce-charcount/health.svg)](https://phpackages.com/packages/drmartingonzo-ss-tinymce-charcount)
```

###  Alternatives

[silverstripe/multiuser-editing-alert

A module that indicates when people are editing the same page in the CMS

1530.7k1](/packages/silverstripe-multiuser-editing-alert)[sunnysideup/typography

Add a typography test page to your silverstripe website / application.

124.2k3](/packages/sunnysideup-typography)

PHPackages © 2026

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