Add the new grey TinyMCE icons, see #15986

git-svn-id: http://svn.automattic.com/wordpress/trunk@17842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-05-09 03:20:50 +00:00
parent da5ca1d1c6
commit 20528f3463
10 changed files with 22 additions and 14 deletions

View File

@ -1717,7 +1717,14 @@ function wp_preload_dialogs($init) {
}
function wp_quicktags() {
global $tinymce_version;
wp_preload_dialogs( array( 'plugins' => 'wpdialogs,wplink,wpfullscreen' ) );
if ( !user_can_richedit() ) {
wp_enqueue_style( 'tinymce-buttons', includes_url('js/tinymce/themes/advanced/skins/wp_theme/ui.css'), array(), $tinymce_version );
wp_print_styles('tinymce-buttons');
}
}
function wp_print_editor_js() {

View File

@ -67,7 +67,6 @@
// Register buttons
ed.addButton('wp_more', {
title : 'wordpress.wp_more_desc',
image : url + '/img/more.gif',
cmd : 'WP_More'
});
@ -79,13 +78,11 @@
ed.addButton('wp_help', {
title : 'wordpress.wp_help_desc',
image : url + '/img/help.gif',
cmd : 'WP_Help'
});
ed.addButton('wp_adv', {
title : 'wordpress.wp_adv_desc',
image : url + '/img/toolbars.gif',
cmd : 'WP_Adv'
});

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -13,7 +13,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
/* External */
.wp_themeSkin .mceExternalToolbar {position:absolute; border-bottom:0; display:none}
.wp_themeSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;}
.wp_themeSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0}
.wp_themeSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/wpicons.png) -820px 0}
/* Layout */
.wp_themeSkin table.mceToolbar, .wp_themeSkin tr.mceFirst .mceToolbar tr td, .wp_themeSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0}
@ -33,7 +33,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
.wp_themeSkin .mceStatusbar a.mceResize {
display: block;
float: right;
background: url(../../img/icons.gif) -800px 0;
background: url(../../img/wpicons.png) -800px 0;
width: 20px;
height: 20px;
cursor: se-resize
@ -43,7 +43,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
.wp_themeSkin #content_toolbar1 {margin-top: 2px;}
.wp_themeSkin .mceToolbar .mceToolbarEndListBox span {display:none}
.wp_themeSkin span.mceIcon, .wp_themeSkin img.mceIcon {display:block; width:20px; height:20px}
.wp_themeSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
.wp_themeSkin .mceIcon {background:url(../../img/wpicons.png) no-repeat 20px 20px}
/* Button */
.wp_themeSkin .mceButton {
@ -192,7 +192,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
padding: 1px 2px;
}
.wp_themeSkin .mceSplitButton span.mceAction {
background-image: url(../../img/icons.gif);
background-image: url(../../img/wpicons.png);
background-repeat: no-repeat;
background-color: transparent;
width:20px;
@ -304,7 +304,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
.wp_themeSkin span.mce_italic {background-position:-60px 0}
.wp_themeSkin span.mce_underline {background-position:-140px 0}
.wp_themeSkin span.mce_strikethrough {background-position:-120px 0}
.wp_themeSkin span.mce_undo {background-position:-160px 0}
.wp_themeSkin span.mce_undo {background-position:-159px 0}
.wp_themeSkin span.mce_redo {background-position:-100px 0}
.wp_themeSkin span.mce_cleanup {background-position:-40px 0}
.wp_themeSkin span.mce_bullist {background-position:-20px 0}
@ -314,13 +314,13 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
.wp_themeSkin span.mce_justifycenter {background-position:-420px 0}
.wp_themeSkin span.mce_justifyfull {background-position:-440px 0}
.wp_themeSkin span.mce_anchor {background-position:-200px 0}
.wp_themeSkin span.mce_indent {background-position:-400px 0}
.wp_themeSkin span.mce_indent {background-position:-400px -1px}
.wp_themeSkin span.mce_outdent {background-position:-540px 0}
.wp_themeSkin span.mce_link {background-position:-500px 0}
.wp_themeSkin span.mce_link {background-position:-499px -1px}
.wp_themeSkin span.mce_unlink {background-position:-640px 0}
.wp_themeSkin span.mce_sub {background-position:-600px 0}
.wp_themeSkin span.mce_sup {background-position:-620px 0}
.wp_themeSkin span.mce_removeformat {background-position:-580px 0}
.wp_themeSkin span.mce_removeformat {background-position:-581px 0}
.wp_themeSkin span.mce_newdocument {background-position:-520px 0}
.wp_themeSkin span.mce_image {background-position:-380px 0}
.wp_themeSkin span.mce_help {background-position:-340px 0}
@ -343,7 +343,7 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
.wp_themeSkin span.mce_rtl {background-position:-40px -20px}
.wp_themeSkin span.mce_emotions {background-position:-60px -20px}
.wp_themeSkin span.mce_fullpage {background-position:-80px -20px}
.wp_themeSkin span.mce_fullscreen {background-position:-100px -20px}
.wp_themeSkin span.mce_fullscreen {background-position:-99px -20px}
.wp_themeSkin span.mce_iespell {background-position:-120px -20px}
.wp_themeSkin span.mce_insertdate {background-position:-140px -20px}
.wp_themeSkin span.mce_inserttime {background-position:-160px -20px}
@ -390,6 +390,10 @@ border:0; margin:0; padding:0; white-space:nowrap; text-decoration:none; font-we
.wp_themeSkin span.mce_pagebreak {background-position:0 -40px}
.wp_themeSkin span.mce_spellchecker {background-position:-540px -20px}
.wp_themeSkin span.mce_wp_adv {background-position:-935px 1px}
.wp_themeSkin span.mce_wp_more {background-position:0 -40px}
.wp_themeSkin span.mce_wp_help {background-position:-340px 0}
/* border */
.wp_themeSkin .mceExternalToolbar,
.wp_themeSkin .mceButton,

View File

@ -36,7 +36,7 @@ $wp_db_version = 17516;
*
* @global string $tinymce_version
*/
$tinymce_version = '342-20110507';
$tinymce_version = '342-20110508';
/**
* Holds the cache manifest version