PHPackages                             peda/htmleditor - 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. [Templating &amp; Views](/categories/templating)
4. /
5. peda/htmleditor

ActiveSilverstripe-module[Templating &amp; Views](/categories/templating)

peda/htmleditor
===============

Multiple HTMLEditor configurations (even on the same page)

071[1 PRs](https://github.com/peda/silverstripe-customconfightmleditor/pulls)JavaScript

Since Jan 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/peda/silverstripe-customconfightmleditor)[ Packagist](https://packagist.org/packages/peda/htmleditor)[ RSS](/packages/peda-htmleditor/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

CustomConfigHtmlEditor
======================

[](#customconfightmleditor)

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

[](#installation)

This module must be installed in a module folder called `htmleditor`

Usage
-----

[](#usage)

The following block adds a new editor configuration called `reduced` within `_config.php`

```
//config defintion
$reduced = HtmlEditorConfig::get('reduced');
$reduced->disablePlugins('table');
$reduced->setButtonsForLine(1, 'bold', 'italic', 'underline', 'strikethrough', 'separator', 'charmap', 'separator', 'sslink', 'unlink', 'code');
$reduced->setButtonsForLine(2);
$reduced->setButtonsForLine(3);
$reduced->setOption('force_br_newlines',true);
$reduced->setOption('force_p_newlines',false);
$reduced->setOption('convert_newlines_to_brs',false);
$reduced->setOption('invalid_elements','p');
$reduced->setOption('paste_auto_cleanup_on_paste',true);
$reduced->setOption('paste_text_sticky',true);
$reduced->setOption('paste_text_sticky_default',true);
$reduced->setOption('paste_remove_styles',true);
$reduced->setOption('paste_remove_styles_if_webkit',true);
$reduced->setOption('paste_strip_class_attributes',true);
$reduced->setOption('language', 'de');
$reduced->enablePlugins(array('ssbuttons' => "../../../framework/thirdparty/tinymce_ssbuttons/editor_plugin_src.js"));

```

To create a new instance of the editor just do the following:

```
CustomHtmlEditorConfig::withConfigName('reduced', 'Field', 'Field Lable');

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/559490?v=4)[Peter Rainer](/maintainers/peda)[@peda](https://github.com/peda)

---

Top Contributors

[![peda](https://avatars.githubusercontent.com/u/559490?v=4)](https://github.com/peda "peda (2 commits)")

### Embed Badge

![Health badge](/badges/peda-htmleditor/health.svg)

```
[![Health](https://phpackages.com/badges/peda-htmleditor/health.svg)](https://phpackages.com/packages/peda-htmleditor)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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