PHPackages                             innoweb/silverstripe-tinymce-clearfloats - 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. innoweb/silverstripe-tinymce-clearfloats

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

innoweb/silverstripe-tinymce-clearfloats
========================================

Adds a clear-floats plugin the CMS WYSIWYG editor

4.0.0(7mo ago)22.5k1BSD-3-ClauseSCSS

Since Apr 3Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/xini/silverstripe-tinymce-clearfloats)[ Packagist](https://packagist.org/packages/innoweb/silverstripe-tinymce-clearfloats)[ Docs](http://github.com/xini/silverstripe-tinymce-clearfloats)[ RSS](/packages/innoweb-silverstripe-tinymce-clearfloats/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (10)Used By (0)

Silverstripe TinyMCE clear-floats plugin
========================================

[](#silverstripe-tinymce-clear-floats-plugin)

[![Version](https://camo.githubusercontent.com/7675a2087a27b9fc9a7252f102ff564f7e01fc3ae63ea930269364b174092d7b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e6e6f7765622f73696c7665727374726970652d74696e796d63652d636c656172666c6f6174732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/innoweb/silverstripe-tinymce-clearfloats)[![License](https://camo.githubusercontent.com/0f16ca6efbeee2671ff66685772dad1ae73c81c724818478fb8eb3e6dd4fffe3/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696e6e6f7765622f73696c7665727374726970652d74696e796d63652d636c656172666c6f6174732e7376673f7374796c653d666c61742d737175617265)](license.md)

This is a Silverstripe port of the [Wordpress plugin](https://github.com/tyrann0us/tinymce-clear-buttons) by [David Bammes](https://github.com/tyrann0us).

Overview
--------

[](#overview)

Adds a clear-floats plugin to the TinyMCE editor in the CMS.

It uses an image in the editor to visualise the clearing element and replaces it with a ``for display on the site.

[![CMS view](./docs/en/_images/screenshot-cms.png)](./docs/en/_images/screenshot-cms.png)*CMS view*

[![Frontend view](./docs/en/_images/screenshot-frontend.png)](./docs/en/_images/screenshot-frontend.png)*Frontend view*

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

[](#requirements)

- Silverstripe CMS ^6
- silverstripe/htmleditor-tinymce ^1

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

[](#installation)

Install the module using composer:

```
composer require innoweb/silverstripe-tinymce-clearfloats dev-master

```

or download or git clone the module into a ‘tinymce-clearfloats’ directory in your webroot.

Then run dev/build.

Configuration
-------------

[](#configuration)

To clean up whitespace added when the clearing `` is the only element in a ``, please add the following CSS in your editor.css file:

```
p > br[style="clear: both;"]:only-child:first-child {
	content: ' ';
	display: block;
	margin: 0 0 -1.2em 0;
	overflow: hidden;
}

```

You should adjust the negative margin in the code above to negate the margin set on your `` elements.

License
-------

[](#license)

BSD 3-Clause License, see [License](license.md)

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance62

Regular maintenance activity

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 64.7% 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 ~387 days

Recently: every ~690 days

Total

9

Last Release

231d ago

Major Versions

1.1.x-dev → 2.0.02018-03-02

2.x-dev → 3.0.02023-03-13

3.x-dev → 4.0.02025-09-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d2e71d7787401a7bd4916062346163897f89f455d650ab32b5d60cd14825ad3?d=identicon)[xini](/maintainers/xini)

---

Top Contributors

[![xini](https://avatars.githubusercontent.com/u/1152403?v=4)](https://github.com/xini "xini (11 commits)")[![dizzystuff](https://avatars.githubusercontent.com/u/576903?v=4)](https://github.com/dizzystuff "dizzystuff (5 commits)")[![tyrann0us](https://avatars.githubusercontent.com/u/8144115?v=4)](https://github.com/tyrann0us "tyrann0us (1 commits)")

---

Tags

silverstripewysiwygtinymceclearfloats

### Embed Badge

![Health badge](/badges/innoweb-silverstripe-tinymce-clearfloats/health.svg)

```
[![Health](https://phpackages.com/badges/innoweb-silverstripe-tinymce-clearfloats/health.svg)](https://phpackages.com/packages/innoweb-silverstripe-tinymce-clearfloats)
```

###  Alternatives

[ktquez/laravel-tinymce

TinyMCE editor for Laravel and Lumen Framework

2525.4k](/packages/ktquez-laravel-tinymce)[zxbodya/yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

1732.1k3](/packages/zxbodya-yii2-tinymce)[nathancox/customhtmleditorfield

Allows per-editor TinyMCE configurations and body classes in SilverStripe

168.7k](/packages/nathancox-customhtmleditorfield)[symbiote/silverstripe-usertemplates

Provides user-definable templates within the CMS that can be applied to content trees. Allows specification of Layout and main templates, as well as associating css + js files

1414.5k1](/packages/symbiote-silverstripe-usertemplates)[axllent/silverstripe-tiled-gridfield

Inline/tiled images in a Silverstripe GridField table

163.2k](/packages/axllent-silverstripe-tiled-gridfield)

PHPackages © 2026

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