mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Post screen improvements^H^H^H, er, changes. Will file tickets for todos.
git-svn-id: https://develop.svn.wordpress.org/trunk@6544 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -922,17 +922,20 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
|
||||
<style type="text/css">
|
||||
#postdivrich table, #postdivrich #quicktags {border-top: none;}
|
||||
#quicktags {border-bottom: none; padding-bottom: 2px; margin-bottom: -1px;}
|
||||
#edButtons {border-bottom: 1px solid #ccc;}
|
||||
</style>
|
||||
<div id='edButtons' style='display:none;'>
|
||||
<div id='editor-toolbar' style='display:none;'>
|
||||
<div class='zerosize'><input accesskey='e' type='button' onclick='switchEditors("<?php echo $id; ?>")' /></div>
|
||||
<input id='edButtonPreview' class='edButtonFore' type='button' value='<?php _e('Visual'); ?>' />
|
||||
<input id='edButtonHTML' class='edButtonBack' type='button' value='<?php _e('Code'); ?>' onclick='switchEditors("<?php echo $id; ?>")' />
|
||||
<a id='edButtonHTML' class='' onclick='switchEditors("<?php echo $id; ?>")'><?php _e('HTML'); ?></a>
|
||||
<a id='edButtonPreview' class='active'><?php _e('Visual'); ?></a>
|
||||
<div id="media-buttons">
|
||||
<?php _e('Add media:'); ?>
|
||||
<?php do_action( 'media_buttons'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
if ( typeof tinyMCE != "undefined" && tinyMCE.configs.length > 0 )
|
||||
document.getElementById('edButtons').style.display = 'block';
|
||||
document.getElementById('editor-toolbar').style.display = 'block';
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -561,8 +561,8 @@ function switchEditors(id) {
|
||||
}
|
||||
|
||||
function edToggle(A, B) {
|
||||
A.className = 'edButtonFore';
|
||||
B.className = 'edButtonBack';
|
||||
A.className = 'active';
|
||||
B.className = '';
|
||||
|
||||
B.onclick = A.onclick;
|
||||
A.onclick = null;
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
.mceLabel, .mceLabelDisabled {font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 9pt;}
|
||||
.mceLabel {color: #000000;}
|
||||
.mceLabelDisabled {cursor: text; color: #999999;}
|
||||
.mceEditor {background: #F0F0EE; border: 1px solid #cccccc; padding: 0; margin: 0;}
|
||||
.mceEditor {background: #F0F0EE; border: 1px solid #ddd; padding: 0; margin: 0;}
|
||||
.mceEditorArea { font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; background: #FFFFFF; padding: 0; margin: 0; }
|
||||
.mceToolbarTop, .mceToolbarBottom {background: #F0F0EE; line-height: 1px; font-size: 1px;}
|
||||
.mceToolbarTop, .mceToolbarBottom {background: #cee1ef; line-height: 1px; font-size: 1px;}
|
||||
.mceToolbarTop {border-bottom: 1px solid #cccccc; padding-bottom: 1px;}
|
||||
.mceToolbarBottom {border-top: 1px solid #cccccc;}
|
||||
.mceToolbarContainer {display: block; position: relative; left: 0; top: 0; width: 100%;}
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
/* Button CSS rules */
|
||||
|
||||
a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img {width: 20px; height: 20px; cursor: default; margin-top: 1px; margin-left: 1px;}
|
||||
a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img {width: 20px; height: 20px; cursor: default; margin: 5px; background: #e9e8e8 url(../../../../../../../wp-admin/images/fade-butt.png); -moz-border-radius: 2px; border: 1px solid #ccc;}
|
||||
a.mceButtonDisabled img {border: 0 !important;}
|
||||
a.mceButtonNormal img, a.mceButtonSelected img {border: 1px solid #F0F0EE !important;}
|
||||
a.mceButtonSelected img {border: 1px solid #6779AA !important; background-color: #D4D5D8;}
|
||||
|
||||
@@ -11,8 +11,6 @@ class WP_Scripts {
|
||||
}
|
||||
|
||||
function default_scripts() {
|
||||
$this->add( 'dbx', '/wp-includes/js/dbx.js', false, '2.05' );
|
||||
|
||||
$this->add( 'fat', '/wp-includes/js/fat.js', false, '1.0-RC1_3660' );
|
||||
|
||||
$this->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' );
|
||||
@@ -100,18 +98,6 @@ class WP_Scripts {
|
||||
$man = 'linkmeta';
|
||||
break;
|
||||
endswitch;
|
||||
if ( $man ) {
|
||||
$this->add( 'dbx-admin-key', '/wp-admin/js/dbx-admin-key.js', array('dbx'), '20070417' );
|
||||
$this->localize( 'dbx-admin-key', 'dbxL10n', array(
|
||||
'manager' => $man,
|
||||
'open' => __('open'),
|
||||
'close' => __('close'),
|
||||
'moveMouse' => __('click-down and drag to move this box'),
|
||||
'toggleMouse' => __('click to %toggle% this box'),
|
||||
'moveKey' => __('use the arrow keys to move this box'),
|
||||
'toggleKey' => __(', or press the enter key to %toggle% it'),
|
||||
) );
|
||||
}
|
||||
$this->add( 'ajaxcat', '/wp-admin/js/cat.js', array( 'wp-lists' ), '20071101' );
|
||||
$this->localize( 'ajaxcat', 'catL10n', array(
|
||||
'add' => attribute_escape(__('Add')),
|
||||
|
||||
Reference in New Issue
Block a user