-
Notifications
You must be signed in to change notification settings - Fork 1
/
readme.txt
executable file
·64 lines (47 loc) · 2.72 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
=== TinyMCE Clear Float ===
Contributors: Tyrannous
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=T5JM3KRTUBEZA
Tags: clear, clear floats, formatting, tinymce, wordpress editor, wysiwyg
Requires at least: 4.6
Tested up to: 4.9
Stable tag: 1.3.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Adds a button to the WordPress TinyMCE editor to clear floats.
== Description ==
Adds a button to the WordPress TinyMCE editor to clear floats.
== Screenshots ==
1. Before: Floated images in the editor. The second image overlaps the first.
2. After: Added clear tag (see new icon in second toolbar).
3. Markup in the Text Editor (notice `<br style="clear: both;">`).
== Frequently Asked Questions ==
= Which HTML markup does the plugin use ? =
Line breaks with inline styles (`<br style="clear: both;">`).
> 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.
== Changelog ==
= 1.3.2 (08/01/2018) =
* Fix: Rare bug (introduced in v1.2.0) that prevented parsing of deprecated clear element if it contained non breaking space (`<div style="clear: both;"> </div>`)
= 1.3.1 (05/20/2018) =
* Fix: Bug (introduced in v1.3.0) that hid the TinyMCE content if no clear element was found
= 1.3.0 (05/19/2018) =
* Fix: Replaced regular expressions for switching clear elements with placeholders and vice versa with DOMParser to reliably match all possible clear element notations (e. g. `<br style="clear: both;">`, `<br style="clear:both">`, `<br style="clear: both;" />`, `<br style="clear:both" />`)
= 1.2.2 (05/25/2017) =
* Fix: Rare bug (introduced in v1.2.0) that caused TinyMCE to remove the `<br />` tag
* Fix: Bug (introduced in v1.2.0) that prevented the plugin from beeing [translatable](https://translate.wordpress.org/projects/wp-plugins/tinymce-clear-buttons) (finally)
* Misc: Bumped "Requires at least" to WordPress 4.6
= 1.2.1 (03/30/2017) =
* Fix: Bug (introduced in v1.2.0) that prevented the plugin from beeing [translatable](https://translate.wordpress.org/projects/wp-plugins/tinymce-clear-buttons)
= 1.2.0 (01/26/2017) =
* New maintainer; first update after seven years
* Feature: Removed clear left and clear right buttons (see [FAQ section](https://wordpress.org/plugins/tinymce-clear-buttons/#faq))
* 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