Download the PHP package innoweb/silverstripe-tinymce-clearfloats without Composer
On this page you can find all versions of the php package innoweb/silverstripe-tinymce-clearfloats. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innoweb/silverstripe-tinymce-clearfloats
More information about innoweb/silverstripe-tinymce-clearfloats
Files in innoweb/silverstripe-tinymce-clearfloats
Package silverstripe-tinymce-clearfloats
Short Description Adds a clear-floats plugin the CMS WYSIWYG editor
License BSD-3-Clause
Homepage http://github.com/xini/silverstripe-tinymce-clearfloats
Informations about the package silverstripe-tinymce-clearfloats
Silverstripe TinyMCE clear-floats plugin
This is a Silverstripe port of the Wordpress plugin by David Bammes.
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 <br style="clear:both;" />
for display on the site.
CMS view
Frontend view
Requirements
- Silverstripe CMS 5.x
Note: this version is compatible with Silverstripe 5.
- For Silverstripe 4, please see the 2.x release line.
- For Silverstripe 3, please see the 1.x release line.
Installation
Install the module using composer:
or download or git clone the module into a ‘tinymce-clearfloats’ directory in your webroot.
Then run dev/build.
Configuration
To clean up whitespace added when the clearing <br>
is the only element in a <p>
, please add the following CSS in your editor.css file:
You should adjust the negative margin in the code above to negate the margin set on your <p>
elements.
License
BSD 3-Clause License, see License