Version Description
- Fixed editor save warning appearing for unchanged content when the table is at the bottom of the editor
- Minor code clean up
Download this release
Release Info
| Developer | jakemgold |
| Plugin | |
| Version | 1.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.1 to 1.0.2
- mce-table/{table_plugin.js → editor_plugin.js} +0 -0
- mce_table_buttons.php +25 -13
- readme.txt +11 -15
mce-table/{table_plugin.js → editor_plugin.js}
RENAMED
|
File without changes
|
mce_table_buttons.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: MCE Table Buttons
|
| 4 |
Plugin URI: http://www.cmurrayconsulting.com/software/wordpress-mce-table-buttons/
|
| 5 |
Description: Add <strong>buttons for table editing</strong> to the WordPress WYSIWYG editor with this very <strong>light weight</strong> plug-in.
|
| 6 |
-
Version: 1.0.
|
| 7 |
Author: Jacob M Goldman (C. Murray Consulting)
|
| 8 |
Author URI: http://www.cmurrayconsulting.com
|
| 9 |
|
|
@@ -26,23 +26,35 @@
|
|
| 26 |
|
| 27 |
add_action("admin_init","mce_table_buttons_setup");
|
| 28 |
|
| 29 |
-
function mce_table_buttons_setup()
|
| 30 |
-
|
| 31 |
-
if (
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
add_filter(
|
| 35 |
-
add_filter('mce_buttons_3', 'rigbc_mcetable_buttons');
|
| 36 |
}
|
| 37 |
}
|
| 38 |
|
| 39 |
-
function
|
| 40 |
-
|
|
|
|
| 41 |
return $plugin_array;
|
| 42 |
}
|
| 43 |
|
| 44 |
-
function
|
| 45 |
-
|
|
|
|
| 46 |
return $buttons;
|
| 47 |
}
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
Plugin Name: MCE Table Buttons
|
| 4 |
Plugin URI: http://www.cmurrayconsulting.com/software/wordpress-mce-table-buttons/
|
| 5 |
Description: Add <strong>buttons for table editing</strong> to the WordPress WYSIWYG editor with this very <strong>light weight</strong> plug-in.
|
| 6 |
+
Version: 1.0.2
|
| 7 |
Author: Jacob M Goldman (C. Murray Consulting)
|
| 8 |
Author URI: http://www.cmurrayconsulting.com
|
| 9 |
|
| 26 |
|
| 27 |
add_action("admin_init","mce_table_buttons_setup");
|
| 28 |
|
| 29 |
+
function mce_table_buttons_setup()
|
| 30 |
+
{
|
| 31 |
+
if ( get_user_option('rich_editing') == 'true' )
|
| 32 |
+
{
|
| 33 |
+
add_filter( 'mce_external_plugins', 'add_mce_table_plugin' );
|
| 34 |
+
add_filter( 'mce_buttons_3', 'mce_table_buttons' );
|
|
|
|
| 35 |
}
|
| 36 |
}
|
| 37 |
|
| 38 |
+
function add_mce_table_plugin( $plugin_array )
|
| 39 |
+
{
|
| 40 |
+
$plugin_array['table'] = WP_PLUGIN_URL . '/' . basename( dirname(__FILE__) ) .'/mce-table/editor_plugin.js';
|
| 41 |
return $plugin_array;
|
| 42 |
}
|
| 43 |
|
| 44 |
+
function mce_table_buttons($buttons)
|
| 45 |
+
{
|
| 46 |
+
array_push( $buttons, "tablecontrols" );
|
| 47 |
return $buttons;
|
| 48 |
}
|
| 49 |
+
|
| 50 |
+
// fix for improper save your changes requests
|
| 51 |
+
|
| 52 |
+
add_action( 'content_save_pre', 'mce_table_ender', 100 );
|
| 53 |
+
|
| 54 |
+
function mce_table_ender( $content )
|
| 55 |
+
{
|
| 56 |
+
if ( substr( $content, -8 ) == '</table>' )
|
| 57 |
+
$content = $content . "\n<br />";
|
| 58 |
+
|
| 59 |
+
return $content;
|
| 60 |
+
}
|
readme.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
=== MCE Table Buttons ===
|
| 2 |
Contributors: Jacob M Goldman (C. Murray Consulting)
|
| 3 |
Donate link: http://www.cmurrayconsulting.com/software/wordpress-mce-table-buttons/
|
| 4 |
-
Tags: tables, editor, WYSIWYG, buttons
|
| 5 |
Requires at least: 2.8
|
| 6 |
-
Tested up to:
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
|
| 9 |
Adds table editing buttons to a new, third row in the WordPress WYSIWYG editor.
|
| 10 |
|
|
@@ -12,23 +12,16 @@ Adds table editing buttons to a new, third row in the WordPress WYSIWYG editor.
|
|
| 12 |
|
| 13 |
Adds table editing buttons to a new, third row in the WordPress WYSIWYG editor.
|
| 14 |
|
| 15 |
-
A very light weight plug-in based on a slightly modified version of the table editor plug-in included with
|
| 16 |
-
the full version of TinyMCE 3.2.7. Only includes English localization; please let us know if you would
|
| 17 |
-
like additional localizations added.
|
| 18 |
|
| 19 |
-
|
| 20 |
-
It is intended to be a simple, light weight solution for editors who only want to add table management to
|
| 21 |
-
WordPress' included editor.
|
| 22 |
-
|
| 23 |
-
Hoping to add the ability to hide the new table editing toolbar with the "kitchen sink" option in a future
|
| 24 |
-
update.
|
| 25 |
|
| 26 |
|
| 27 |
== Installation ==
|
| 28 |
|
| 29 |
1. Install easily with the WordPress plugin control panel or manually download the plugin and upload the folder
|
| 30 |
`mce-table-buttons` to the `/wp-content/plugins/` directory
|
| 31 |
-
|
| 32 |
|
| 33 |
|
| 34 |
== Screenshots ==
|
|
@@ -37,6 +30,9 @@ update.
|
|
| 37 |
|
| 38 |
== Changelog ==
|
| 39 |
|
| 40 |
-
=1.0.
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
|
|
| 1 |
=== MCE Table Buttons ===
|
| 2 |
Contributors: Jacob M Goldman (C. Murray Consulting)
|
| 3 |
Donate link: http://www.cmurrayconsulting.com/software/wordpress-mce-table-buttons/
|
| 4 |
+
Tags: tables, table, editor, WYSIWYG, buttons, tinymce
|
| 5 |
Requires at least: 2.8
|
| 6 |
+
Tested up to: 3.0.1
|
| 7 |
+
Stable tag: 1.0.2
|
| 8 |
|
| 9 |
Adds table editing buttons to a new, third row in the WordPress WYSIWYG editor.
|
| 10 |
|
| 12 |
|
| 13 |
Adds table editing buttons to a new, third row in the WordPress WYSIWYG editor.
|
| 14 |
|
| 15 |
+
A very light weight plug-in based on a slightly modified version of the table editor plug-in included with the full version of TinyMCE 3.2.7. Only includes English localization; please let us know if you would like additional localizations added. Note that this should not be used with other plug-ins that significantly alter the editor's default behavior. It is intended to be a simple, light weight solution for editors who only want to add table management to WordPress' included editor.
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
Hoping to add the ability to hide the new table editing toolbar with the "kitchen sink" option in a future update.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
== Installation ==
|
| 21 |
|
| 22 |
1. Install easily with the WordPress plugin control panel or manually download the plugin and upload the folder
|
| 23 |
`mce-table-buttons` to the `/wp-content/plugins/` directory
|
| 24 |
+
1. Activate the plugin through the 'Plugins' menu in WordPress
|
| 25 |
|
| 26 |
|
| 27 |
== Screenshots ==
|
| 30 |
|
| 31 |
== Changelog ==
|
| 32 |
|
| 33 |
+
= 1.0.2 =
|
| 34 |
+
* Fixed editor save warning appearing for unchanged content when the table is at the bottom of the editor
|
| 35 |
+
* Minor code clean up
|
| 36 |
|
| 37 |
+
= 1.0.1 =
|
| 38 |
+
* Fixed issue with WebKit browsers (Safari and Chrome) - TinyMCE bug
|
