diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 189f3870fa..76b1162da9 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -643,6 +643,19 @@ table .vers, table .name { background: #8B8; } +/* A handy div class for hiding controls. + Some browsers will disable them when you + set display:none; */ +.zerosize { + height: 0px; + width: 0px; + margin: 0px; + border: 0px; + padding: 0px; + overflow: hidden; + position: absolute; +} + /* Box stuff */ .dbx-clone { position:absolute; @@ -807,4 +820,4 @@ a.dbx-toggle-open, a.dbx-toggle-open:visited { -moz-opacity: 0.8; -khtml-opacity: 0.8; filter: alpha(opacity=80); -} \ No newline at end of file +} diff --git a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js index 32565222a1..679239f4b2 100644 --- a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js +++ b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js @@ -11,7 +11,28 @@ function TinyMCE_wordpress_getControlHTML(control_name) { case "wordpress": var titleMore = tinyMCE.getLang('lang_wordpress_more_button'); var titlePage = tinyMCE.getLang('lang_wordpress_page_button'); - return ''; + var buttons = ''; + var hiddenControls = '
' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '
'; + return buttons+hiddenControls; } return ""; @@ -193,6 +214,9 @@ function TinyMCE_wordpress_cleanup(type, content) { // The Curse of the Trailing
content = content.replace(new RegExp('
[ \t]*$', ''), ''); + // The Curse of the Trailing
+ content = content.replace(new RegExp('
[ \t]*$', ''), ''); + break; } diff --git a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js index 32565222a1..679239f4b2 100644 --- a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js +++ b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js @@ -11,7 +11,28 @@ function TinyMCE_wordpress_getControlHTML(control_name) { case "wordpress": var titleMore = tinyMCE.getLang('lang_wordpress_more_button'); var titlePage = tinyMCE.getLang('lang_wordpress_page_button'); - return ''; + var buttons = ''; + var hiddenControls = '
' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '
'; + return buttons+hiddenControls; } return ""; @@ -193,6 +214,9 @@ function TinyMCE_wordpress_cleanup(type, content) { // The Curse of the Trailing
content = content.replace(new RegExp('
[ \t]*$', ''), ''); + // The Curse of the Trailing
+ content = content.replace(new RegExp('
[ \t]*$', ''), ''); + break; }