Editor: use <button> instead of <a> for the Visual/Text buttons, make them focusable. Props afercia, fixes #27553

Built from https://develop.svn.wordpress.org/trunk@30002


git-svn-id: http://core.svn.wordpress.org/trunk@30002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2014-10-24 01:21:18 +00:00
parent 34f3c6faf2
commit 8681dc786c
11 changed files with 78 additions and 48 deletions

View File

@@ -1432,11 +1432,11 @@ table.links-table {
padding: 10px 20px;
}
a.wp-switch-editor {
button.wp-switch-editor {
font-size: 16px;
line-height: 1em;
margin: 3px 7px 0 0;
padding: 12px 15px;
margin: 7px 7px 0 0;
padding: 8px 12px;
}
#wp-content-media-buttons a {

View File

@@ -1432,11 +1432,11 @@ table.links-table {
padding: 10px 20px;
}
a.wp-switch-editor {
button.wp-switch-editor {
font-size: 16px;
line-height: 1em;
margin: 3px 0 0 7px;
padding: 12px 15px;
margin: 7px 0 0 7px;
padding: 8px 12px;
}
#wp-content-media-buttons a {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -504,7 +504,7 @@ if ( post_type_supports($post_type, 'editor') ) {
<?php wp_editor( $post->post_content, 'content', array(
'dfw' => true,
'drag_drop_upload' => true,
'tabfocus_elements' => 'insert-media-button,save-post',
'tabfocus_elements' => 'content-html,save-post',
'editor_height' => 300,
'tinymce' => array(
'resize' => false,