From c6a3cc324969a7f751f850652a203d45a6185f6c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 9 Nov 2005 08:44:48 +0000 Subject: [PATCH] TinyMCE accesskeys from skeltoac. fixes #1854 git-svn-id: https://develop.svn.wordpress.org/trunk@3020 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/wp-admin.css | 15 ++++++++++- .../plugins/wordpress/editor_plugin.js | 26 ++++++++++++++++++- .../plugins/wordpress/editor_plugin_src.js | 26 ++++++++++++++++++- 3 files changed, 64 insertions(+), 3 deletions(-) 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; }