TinyMCE Clear Float

Omschrijving

Adds a button to the WordPress TinyMCE editor to clear floats.

Schermafdrukken

  • Before: Floated images in the editor. The second image overlaps the first.
  • After: Added clear tag (see new icon in second toolbar).
  • Markup in the Text Editor (notice <br style="clear: both;" />).

FAQ

Which HTML markup does the plugin use ?

Until version 1.1, the following markup has been used: <div style="clear: (left|right|both);"></div>.
From version 1.2.0 on, the following markup is used: <br style="clear: both;" /> (line breaks).

Note: TinyMCE wrapps line breaks in paragraphs which may lead to additional margins depending on your theme. To prevent these margins paste the following in the “Custom CSS” part of the Customizer:
p > br[style=”clear: both;”]:only-child {
content: ”;
display: block;
margin-bottom: -1.5em;
}
The value 1.5em corresponds to your theme’s margin-bottom of <p> tags.

Beoordelingen

Lees alle 4 beoordelingen

Bijdragers & ontwikkelaars

“TinyMCE Clear Float” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“TinyMCE Clear Float” is vertaald in 1 taal. Dank voor de vertalers voor hun bijdragen.

Vertaal “TinyMCE Clear Float” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.2.2 (05/25/2017)

  • Fix: Rare bug that caused TinyMCE to remove the <br /> tag
  • Fix: Bug that prevented the plugin from beeing translatable (finally)
  • Misc: Bumped “Requires at least” to WordPress 4.6

1.2.1 (03/30/2017)

  • Fix: Bug that prevented the plugin from beeing translatable

1.2.0 (01/26/2017)

  • New maintainer; first update after seven years
  • Feature: Removed clear left and clear right buttons (see FAQ section)
  • Misc: Completely refactured plugin code

1.1 (05/10/2010)

  • Feature: Added HTML block in the style of WordPress

1.0 (04/28/2010)

  • Initial release