Skip to content

Commit

Permalink
Completed readme, corrected DocBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrann0us committed Jan 26, 2017
1 parent 8e47aa8 commit 1dc2ac3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
5 changes: 2 additions & 3 deletions admin/class-tinymce-clear-float-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
/**
* The admin-specific functionality of the plugin.
*
* Defines the plugin name, version, and two examples hooks for how to
* enqueue the admin-specific stylesheet and JavaScript.
* Defines the plugin name, version, and all required hooks.
*
* @package Tinymce_Clear_Float
* @subpackage Tinymce_Clear_Float/admin
Expand Down Expand Up @@ -130,7 +129,7 @@ public function add_tinymce_plugin( $plugins ) {
* Add link to PayPal donation page and wordpress.org rating page.
*
* @param array $data Current plugin row links.
* @param string $page Plugin basename.
* @param string $file Plugin basename.
* @return array $data Merged array with links.
*
* @since 1.2.0
Expand Down
8 changes: 2 additions & 6 deletions admin/tinymce/tinymce-clear-float/js/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

tinymce.create( 'tinymce.plugins.tinymce_clear_float', {
/**
* Initializes the plugin, this will be executed after the plugin has been created.
* This call is done before the editor instance has finished it's initialization so use the onInit event
* of the editor instance to intercept that event.
*
* @param {tinymce.Editor} editor Editor instance that the plugin is initialized in.
* @param {string} url Absolute URL to where the plugin is located.
*/
Expand All @@ -16,10 +12,10 @@
clear_placeholder = '<img ' +
'src="' + tinymce.Env.transparentSrc + '" ' +
/*
* Note: The `data-wp-more` attribute is used to let WordPress apply core CSS at the placeholder.
* Note: `data-wp-more` attribute is used to let WordPress apply core CSS at the placeholder.
*/
'data-wp-more ' +
'class="wp-tinymce-clear-float mce-tinymce-clear-float" ' +
'class="mce-tinymce-clear-float" ' +
'alt="" ' +
'title="' + clear_title + '" ' +
'data-mce-resize="false" ' +
Expand Down
6 changes: 3 additions & 3 deletions admin/tinymce/tinymce-clear-float/js/plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions includes/class-tinymce-clear-float.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ private function load_dependencies() {
}

/**
* Register all of the hooks related to the admin area functionality
* of the plugin.
* Register all of the hooks related to the admin area functionality of the plugin.
*
* @since 1.2.0
* @access private
Expand Down
8 changes: 5 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=== TinyMCE Clear Float ===
Contributors: Tyrannous
Donate link:
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.0
Tested up to: 4.7.1
Expand Down Expand Up @@ -35,11 +35,13 @@ The value `1.5em` corresponds to your theme’s `margin-bottom` of `<p>` tags.

== 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;" />`).

== Changelog ==

= 1.2.0 =
= 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/))
Expand Down
2 changes: 1 addition & 1 deletion tinymce-clear-buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}

/**
* The core plugin class that is used to define admin-specific hooks.
* The core plugin class that is used to define admin-specific hooks.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-tinymce-clear-float.php';

Expand Down

0 comments on commit 1dc2ac3

Please sign in to comment.