diff --git a/wp-admin/css/colors-classic.dev.css b/wp-admin/css/colors-classic.dev.css
index 079511b..759b6ba 100644
a
|
b
|
h3.dashboard-widget-title small a:hover { |
484 | 484 | |
485 | 485 | a, |
486 | 486 | #adminmenu a, |
487 | | #poststuff #edButtonPreview, |
488 | | #poststuff #edButtonHTML, |
| 487 | #poststuff .edButtonPreview, |
| 488 | #poststuff .edButtonHTML, |
489 | 489 | #the-comment-list p.comment-author strong a, |
490 | 490 | #media-upload a.del-link, |
491 | 491 | #media-items a.delete, |
… |
… |
table.widefat span.spam a, |
675 | 675 | background-image: url(../images/date-button.gif); |
676 | 676 | } |
677 | 677 | |
678 | | #quicktags #ed_link { |
| 678 | .quicktags #ed_link { |
679 | 679 | color: #00f; |
680 | 680 | } |
681 | 681 | |
… |
… |
table.widefat .spam a:hover, |
778 | 778 | } |
779 | 779 | |
780 | 780 | /* editors */ |
781 | | #quicktags { |
| 781 | .quicktags { |
782 | 782 | border-color: #dfdfdf; |
783 | 783 | background-color: #dfdfdf; |
784 | 784 | } |
… |
… |
table.widefat .spam a:hover, |
796 | 796 | border-color: #ededed; |
797 | 797 | } |
798 | 798 | |
799 | | #poststuff #edButtonPreview, |
800 | | #poststuff #edButtonHTML { |
| 799 | #poststuff .edButtonPreview, |
| 800 | #poststuff .edButtonHTML { |
801 | 801 | background-color: #f2f1eb; |
802 | 802 | border-color: #dfdfdf; |
803 | 803 | color: #999; |
804 | 804 | } |
805 | 805 | |
806 | | #poststuff #editor-toolbar .active { |
| 806 | #poststuff .editor-toolbar .active { |
807 | 807 | border-bottom-color: #e3eef7; |
808 | 808 | background-color: #e3eef7; |
809 | 809 | color: #333; |
810 | 810 | } |
811 | 811 | |
812 | 812 | /* TinyMCE */ |
813 | | #post-status-info { |
| 813 | .post-status-info { |
814 | 814 | background-color: #ededed; |
815 | 815 | } |
816 | 816 | |
… |
… |
table.widefat .spam a:hover, |
947 | 947 | color: #888; |
948 | 948 | } |
949 | 949 | |
950 | | #quicktags, |
| 950 | .quicktags, |
951 | 951 | .wp_themeSkin tr.mceFirst td.mceToolbar { |
952 | 952 | background: #e3eef7 url("../images/ed-bg-vs.gif") repeat-x scroll left top; |
953 | 953 | } |
… |
… |
table.widefat .spam a:hover, |
1016 | 1016 | } |
1017 | 1017 | /* end TinyMCE */ |
1018 | 1018 | |
1019 | | #editorcontainer, |
1020 | | #post-status-info, |
| 1019 | .editorcontainer, |
| 1020 | .post-status-info, |
1021 | 1021 | #titlediv #title, |
1022 | 1022 | .editwidget .widget-inside { |
1023 | 1023 | border-color: #dfdfdf; |
diff --git a/wp-admin/css/colors-fresh.dev.css b/wp-admin/css/colors-fresh.dev.css
index 76b9c19..44dc067 100644
a
|
b
|
h3.dashboard-widget-title small a:hover { |
480 | 480 | |
481 | 481 | a, |
482 | 482 | #adminmenu a, |
483 | | #poststuff #edButtonPreview, |
484 | | #poststuff #edButtonHTML, |
| 483 | #poststuff .edButtonPreview, |
| 484 | #poststuff .edButtonHTML, |
485 | 485 | #the-comment-list p.comment-author strong a, |
486 | 486 | #media-upload a.del-link, |
487 | 487 | #media-items a.delete, |
… |
… |
table.widefat span.spam a, |
670 | 670 | background-image: url(../images/date-button.gif); |
671 | 671 | } |
672 | 672 | |
673 | | #quicktags #ed_link { |
| 673 | .quicktags #ed_link { |
674 | 674 | color: #00f; |
675 | 675 | } |
676 | 676 | |
… |
… |
table.widefat .spam a:hover, |
776 | 776 | } |
777 | 777 | |
778 | 778 | /* editors */ |
779 | | #quicktags { |
| 779 | .quicktags { |
780 | 780 | border-color: #dfdfdf; |
781 | 781 | background-color: #dfdfdf; |
782 | 782 | } |
… |
… |
table.widefat .spam a:hover, |
794 | 794 | border-color: #EDEDED; |
795 | 795 | } |
796 | 796 | |
797 | | #poststuff #edButtonPreview, |
798 | | #poststuff #edButtonHTML { |
| 797 | #poststuff .edButtonPreview, |
| 798 | #poststuff .edButtonHTML { |
799 | 799 | background-color: #f1f1f1; |
800 | 800 | border-color: #dfdfdf; |
801 | 801 | color: #999; |
802 | 802 | } |
803 | 803 | |
804 | | #poststuff #editor-toolbar .active { |
| 804 | #poststuff .editor-toolbar .active { |
805 | 805 | border-bottom-color: #e9e9e9; |
806 | 806 | background-color: #e9e9e9; |
807 | 807 | color: #333; |
808 | 808 | } |
809 | 809 | |
810 | 810 | /* TinyMCE */ |
811 | | #post-status-info { |
| 811 | .post-status-info { |
812 | 812 | background-color: #EDEDED; |
813 | 813 | } |
814 | 814 | |
… |
… |
table.widefat .spam a:hover, |
1011 | 1011 | } |
1012 | 1012 | /* end TinyMCE */ |
1013 | 1013 | |
1014 | | #editorcontainer, |
1015 | | #post-status-info, |
| 1014 | .editorcontainer, |
| 1015 | .post-status-info, |
1016 | 1016 | #titlediv #title, |
1017 | 1017 | .editwidget .widget-inside { |
1018 | 1018 | border-color: #dfdfdf; |
diff --git a/wp-admin/css/dashboard-rtl.css b/wp-admin/css/dashboard-rtl.css
index ce37292..5edeb76 100644
a
|
b
|
|
68 | 68 | #dashboard_quick_press .input-text-wrap, #dashboard_quick_press .textarea-wrap { |
69 | 69 | margin: 0 5em 1em 0; |
70 | 70 | } |
71 | | #dashboard_quick_press #media-buttons { |
| 71 | #dashboard_quick_press .media-buttons { |
72 | 72 | margin: 0 5em .5em 0; |
73 | 73 | padding: 0 10px 0 0; |
74 | 74 | } |
diff --git a/wp-admin/css/dashboard.dev.css b/wp-admin/css/dashboard.dev.css
index 782c367..6f9b32b 100644
a
|
b
|
div.postbox div.inside { |
276 | 276 | margin: 0 0 1em 5em; |
277 | 277 | } |
278 | 278 | |
279 | | #dashboard_quick_press #media-buttons { |
| 279 | #dashboard_quick_press .media-buttons { |
280 | 280 | margin: 0 0 .5em 5em; |
281 | 281 | padding: 0 0 0 10px; |
282 | 282 | font-size: 11px; |
283 | 283 | } |
284 | 284 | |
285 | | #dashboard_quick_press #media-buttons a { |
| 285 | #dashboard_quick_press .media-buttons a { |
286 | 286 | vertical-align: bottom; |
287 | 287 | } |
288 | 288 | |
diff --git a/wp-admin/css/ie-rtl.css b/wp-admin/css/ie-rtl.css
index 067f59a..159a4bf 100644
a
|
b
|
p.row-actions { |
74 | 74 | position: absolute; |
75 | 75 | right:0; |
76 | 76 | } |
77 | | #post-status-info { |
| 77 | .post-status-info { |
78 | 78 | height: 25px; |
79 | 79 | } |
80 | 80 | #screen-meta { |
diff --git a/wp-admin/css/ie.css b/wp-admin/css/ie.css
index e8eea47..ef9593f 100644
a
|
b
|
a.button { |
231 | 231 | } |
232 | 232 | |
233 | 233 | #the-comment-list .comment-item, |
234 | | #post-status-info, |
| 234 | .post-status-info, |
235 | 235 | #wpwrap, |
236 | 236 | #wpcontent, |
237 | 237 | #wrap, |
… |
… |
a.button { |
241 | 241 | .metabox-holder, |
242 | 242 | #titlediv, |
243 | 243 | #post-body, |
244 | | #editorcontainer, |
| 244 | .editorcontainer, |
245 | 245 | .tablenav, |
246 | 246 | .widget-liquid-left, |
247 | 247 | .widget-liquid-right, |
… |
… |
p.search-box { |
266 | 266 | margin: -3px 0 4px; |
267 | 267 | } |
268 | 268 | |
269 | | * html #editorcontainer { |
| 269 | * html .editorcontainer { |
270 | 270 | padding: 0; |
271 | 271 | } |
272 | 272 | |
273 | | #editorcontainer #content { |
| 273 | .editorcontainer .the-editor-html-content { |
274 | 274 | overflow: auto; |
275 | 275 | margin: auto; |
276 | 276 | width: 98%; |
diff --git a/wp-admin/css/press-this-rtl.css b/wp-admin/css/press-this-rtl.css
index 9f4a37e..ed1aa96 100644
a
|
b
|
body { |
2 | 2 | font-family: Tahoma, Arial; |
3 | 3 | } |
4 | 4 | |
5 | | #poststuff #edButtonPreview, |
6 | | #poststuff #edButtonHTML { |
| 5 | #poststuff .edButtonPreview, |
| 6 | #poststuff .edButtonHTML { |
7 | 7 | margin: 0 0 0 5px; |
8 | 8 | float: right; |
9 | 9 | } |
diff --git a/wp-admin/css/press-this.dev.css b/wp-admin/css/press-this.dev.css
index 2e6f3f6..9986574 100644
a
|
b
|
img { |
23 | 23 | background: transparent url(../images/xit.gif) no-repeat 0 0; |
24 | 24 | } |
25 | 25 | |
26 | | #poststuff #edButtonPreview, |
27 | | #poststuff #edButtonHTML { |
| 26 | #poststuff .edButtonPreview, |
| 27 | #poststuff .edButtonHTML { |
28 | 28 | -moz-border-radius: 3px 3px 0 0; |
29 | 29 | -webkit-border-top-right-radius: 3px; |
30 | 30 | -webkit-border-top-left-radius: 3px; |
… |
… |
div.zerosize { |
80 | 80 | width: 0; |
81 | 81 | } |
82 | 82 | |
83 | | #poststuff #edButtonPreview.active, |
84 | | #poststuff #edButtonHTML.active { |
| 83 | #poststuff .edButtonPreview.active, |
| 84 | #poststuff .edButtonHTML.active { |
85 | 85 | display: none; |
86 | 86 | } |
87 | 87 | |
diff --git a/wp-admin/css/wp-admin-rtl.dev.css b/wp-admin/css/wp-admin-rtl.dev.css
index d659511..e62c75f 100644
a
|
b
|
td.available-theme { |
56 | 56 | #wpcontent select { |
57 | 57 | font-family: Tahoma, Arial, sans-serif; |
58 | 58 | } |
59 | | #quicktags { |
| 59 | .quicktags { |
60 | 60 | background-position: right top; |
61 | 61 | } |
62 | 62 | /* 500 - 700 |
… |
… |
td.available-theme { |
221 | 221 | margin-right: 0; |
222 | 222 | margin-left: 5px; |
223 | 223 | } |
224 | | #post-status-info { |
| 224 | .post-status-info { |
225 | 225 | padding: 0 7px 0 15px; |
226 | 226 | } |
227 | 227 | #comment-status-radio input { |
… |
… |
td.available-theme { |
270 | 270 | .wp_themeSkin tr.mceFirst td.mceToolbar { |
271 | 271 | background-position: right top; |
272 | 272 | } |
273 | | #poststuff #edButtonPreview, |
274 | | #poststuff #edButtonHTML { |
| 273 | #poststuff .edButtonPreview, |
| 274 | #poststuff .edButtonHTML { |
275 | 275 | margin: 5px 0 0 5px; |
276 | 276 | float: left; |
277 | 277 | } |
278 | | #poststuff #edButtonHTML { |
| 278 | #poststuff .edButtonHTML { |
279 | 279 | margin-right: 0; |
280 | 280 | margin-left: 15px; |
281 | 281 | } |
282 | | #media-buttons a { |
| 282 | .media-buttons a { |
283 | 283 | padding: 0 10px 5px 0; |
284 | 284 | } |
285 | 285 | .submitbox .submit { |
diff --git a/wp-admin/css/wp-admin.dev.css b/wp-admin/css/wp-admin.dev.css
index 8139ce9..871cdde 100644
a
|
b
|
select option { |
32 | 32 | #pass-strength-result.short, |
33 | 33 | .button-highlighted, |
34 | 34 | input.button-highlighted, |
35 | | #quicktags #ed_strong, |
| 35 | .quicktags #ed_strong, |
36 | 36 | #ed_reply_toolbar #ed_reply_strong { |
37 | 37 | font-weight: bold; |
38 | 38 | } |
… |
… |
textarea.all-options, input.all-options { |
494 | 494 | padding-top: 10px; |
495 | 495 | } |
496 | 496 | |
497 | | #content { |
| 497 | .the-editor-html-content { |
498 | 498 | margin: 0; |
499 | 499 | width: 100%; |
500 | 500 | } |
501 | 501 | |
502 | | #editorcontainer #content { |
| 502 | .editorcontainer .the-editor-html-content { |
503 | 503 | padding: 6px; |
504 | 504 | line-height: 150%; |
505 | 505 | border: 0 none; |
… |
… |
textarea.all-options, input.all-options { |
510 | 510 | box-sizing: border-box; |
511 | 511 | } |
512 | 512 | |
513 | | #editorcontainer, |
514 | | #quicktags { |
| 513 | .editorcontainer, |
| 514 | .quicktags { |
515 | 515 | border-style: solid; |
516 | 516 | border-width: 1px; |
517 | 517 | border-collapse: separate; |
… |
… |
textarea.all-options, input.all-options { |
524 | 524 | border-top-left-radius: 6px; |
525 | 525 | } |
526 | 526 | |
527 | | #quicktags { |
| 527 | .quicktags { |
528 | 528 | padding: 0; |
529 | 529 | margin-bottom: -3px; |
530 | 530 | border-bottom-width: 3px; |
… |
… |
textarea.all-options, input.all-options { |
533 | 533 | background-repeat: repeat-x; |
534 | 534 | } |
535 | 535 | |
536 | | #quicktags #ed_toolbar { |
| 536 | .quicktags #ed_toolbar { |
537 | 537 | padding: 2px 4px 0; |
538 | 538 | } |
539 | 539 | |
… |
… |
textarea.all-options, input.all-options { |
551 | 551 | margin: 1px 2px 1px 1px; |
552 | 552 | } |
553 | 553 | |
554 | | #quicktags #ed_link, |
| 554 | .quicktags #ed_link, |
555 | 555 | #ed_reply_toolbar #ed_reply_link { |
556 | 556 | text-decoration: underline; |
557 | 557 | } |
558 | 558 | |
559 | | #quicktags #ed_del, |
| 559 | .quicktags #ed_del, |
560 | 560 | #ed_reply_toolbar #ed_reply_del { |
561 | 561 | text-decoration: line-through; |
562 | 562 | } |
563 | 563 | |
564 | | #quicktags #ed_em, |
| 564 | .quicktags #ed_em, |
565 | 565 | #ed_reply_toolbar #ed_reply_em { |
566 | 566 | font-style: italic; |
567 | 567 | } |
… |
… |
span.description, |
1524 | 1524 | width: 68%; |
1525 | 1525 | } |
1526 | 1526 | |
1527 | | #post-status-info { |
| 1527 | .post-status-info { |
| 1528 | line-height: 1.4em; |
1528 | 1529 | border-width: 0 1px 1px; |
1529 | 1530 | border-style: none solid solid; |
1530 | 1531 | width: 100%; |
… |
… |
span.description, |
1537 | 1538 | border-bottom-right-radius: 6px; |
1538 | 1539 | } |
1539 | 1540 | |
1540 | | #post-status-info td { |
| 1541 | .post-status-info td { |
1541 | 1542 | font-size: 11px; |
1542 | 1543 | } |
1543 | 1544 | |
… |
… |
span.description, |
1546 | 1547 | text-align: right; |
1547 | 1548 | } |
1548 | 1549 | |
1549 | | #editorcontent #post-status-info { |
| 1550 | #editorcontent .post-status-info { |
1550 | 1551 | border: none; |
1551 | 1552 | } |
1552 | 1553 | |
… |
… |
input#link_url { |
1842 | 1843 | right: 10px; |
1843 | 1844 | } |
1844 | 1845 | |
1845 | | #poststuff #editor-toolbar { |
| 1846 | #poststuff .editor-toolbar { |
1846 | 1847 | height: 30px; |
1847 | 1848 | } |
1848 | 1849 | |
… |
… |
input#link_url { |
1851 | 1852 | border-style: none none solid; |
1852 | 1853 | } |
1853 | 1854 | |
1854 | | #edButtonPreview, |
1855 | | #edButtonHTML { |
| 1855 | .edButtonPreview, |
| 1856 | .edButtonHTML { |
1856 | 1857 | height: 18px; |
1857 | 1858 | margin: 5px 5px 0 0; |
1858 | 1859 | padding: 4px 5px 2px; |
… |
… |
input#link_url { |
1873 | 1874 | color: white; |
1874 | 1875 | } |
1875 | 1876 | |
1876 | | #poststuff #edButtonHTML { |
| 1877 | #poststuff .edButtonHTML { |
1877 | 1878 | margin-right: 15px; |
1878 | 1879 | } |
1879 | 1880 | |
1880 | | #media-buttons { |
| 1881 | .media-buttons { |
1881 | 1882 | cursor: default; |
1882 | 1883 | padding: 8px 8px 0; |
1883 | 1884 | } |
1884 | 1885 | |
1885 | | #media-buttons a { |
| 1886 | .media-buttons a { |
1886 | 1887 | cursor: pointer; |
1887 | 1888 | padding: 0 0 5px 10px; |
1888 | 1889 | } |
1889 | 1890 | |
1890 | | #media-buttons img, |
| 1891 | .media-buttons img, |
1891 | 1892 | #submitpost #ajax-loading { |
1892 | 1893 | vertical-align: middle; |
1893 | 1894 | } |
… |
… |
fieldset { |
2399 | 2400 | padding: 2px; |
2400 | 2401 | } |
2401 | 2402 | |
2402 | | #replyrow #editorcontainer { |
| 2403 | #replyrow .editorcontainer { |
2403 | 2404 | border: 0 none; |
2404 | 2405 | } |
2405 | 2406 | |
diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
index 78cbde7..f5e4213 100644
a
|
b
|
endif; ?> |
211 | 211 | |
212 | 212 | <?php the_editor($post->post_content); ?> |
213 | 213 | |
214 | | <table id="post-status-info" cellspacing="0"><tbody><tr> |
| 214 | <table class="post-status-info" cellspacing="0"><tbody><tr> |
215 | 215 | <td id="wp-word-count"></td> |
216 | 216 | <td class="autosave-info"> |
217 | 217 | <span id="autosave"> </span> |
diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
index 7b26991..bb0f9da 100644
a
|
b
|
function wp_dashboard_quick_press() { |
398 | 398 | </div> |
399 | 399 | |
400 | 400 | <?php if ( current_user_can( 'upload_files' ) ) : ?> |
401 | | <div id="media-buttons" class="hide-if-no-js"> |
| 401 | <div class="media-buttons hide-if-no-js"> |
402 | 402 | <?php do_action( 'media_buttons' ); ?> |
403 | 403 | </div> |
404 | 404 | <?php endif; ?> |
diff --git a/wp-admin/js/editor.dev.js b/wp-admin/js/editor.dev.js
index ce6f835..417d3f4 100644
a
|
b
|
jQuery(document).ready(function($){ |
9 | 9 | if ( typeof tinyMCE != 'object' ) { |
10 | 10 | $('#content').css('color', '#000'); |
11 | 11 | } else { |
12 | | $('#quicktags').hide(); |
| 12 | $('.quicktags').hide(); |
13 | 13 | } |
14 | 14 | } |
15 | 15 | }); |
… |
… |
var switchEditors = { |
83 | 83 | id = id || 'content'; |
84 | 84 | mode = mode || this.mode || ''; |
85 | 85 | |
86 | | var ed, qt = this.I('quicktags'), H = this.I('edButtonHTML'), P = this.I('edButtonPreview'), ta = this.I(id); |
| 86 | var ed, qt = this.I('quicktags-' + id), H = this.I('edButtonHTML-' + id), P = this.I('edButtonPreview-' + id), ta = this.I(id); |
87 | 87 | |
88 | 88 | try { ed = tinyMCE.get(id); } |
89 | 89 | catch(e) { ed = false; } |
… |
… |
var switchEditors = { |
95 | 95 | setUserSetting( 'editor', 'tinymce' ); |
96 | 96 | this.mode = 'html'; |
97 | 97 | |
98 | | P.className = 'active'; |
99 | | H.className = ''; |
| 98 | jQuery(P).addClass('active'); |
| 99 | jQuery(H).removeClass('active'); |
100 | 100 | edCloseAllTags(); // :-( |
101 | 101 | qt.style.display = 'none'; |
102 | 102 | |
… |
… |
var switchEditors = { |
115 | 115 | setUserSetting( 'editor', 'html' ); |
116 | 116 | ta.style.color = '#000'; |
117 | 117 | this.mode = 'tinymce'; |
118 | | H.className = 'active'; |
119 | | P.className = ''; |
| 118 | jQuery(H).addClass('active'); |
| 119 | jQuery(P).removeClass('active'); |
120 | 120 | |
121 | 121 | if ( ed && !ed.isHidden() ) { |
122 | 122 | ta.style.height = ed.getContentAreaContainer().offsetHeight + 24 + 'px'; |
diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php
index a456b0c..4f2f8e0 100644
a
|
b
|
var photostorage = false; |
557 | 557 | <li id="switcher"> |
558 | 558 | <?php wp_print_scripts( 'quicktags' ); ?> |
559 | 559 | <?php add_filter('the_editor_content', 'wp_richedit_pre'); ?> |
560 | | <a id="edButtonHTML" onclick="switchEditors.go('content', 'html');"><?php _e('HTML'); ?></a> |
561 | | <a id="edButtonPreview" class="active" onclick="switchEditors.go('content', 'tinymce');"><?php _e('Visual'); ?></a> |
| 560 | <a id="edButtonHTML-content" class="edButtonHTML" onclick="switchEditors.go('content', 'html');"><?php _e('HTML'); ?></a> |
| 561 | <a id="edButtonPreview-content" class="edButtonPreview active" onclick="switchEditors.go('content', 'tinymce');"><?php _e('Visual'); ?></a> |
562 | 562 | <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('content')" /></div> |
563 | 563 | </li> |
564 | 564 | <?php } ?> |
565 | 565 | </ul> |
566 | | <div id="quicktags"></div> |
| 566 | <div class="quicktags"></div> |
567 | 567 | <div class="editor-container"> |
568 | 568 | <textarea name="content" id="content" style="width:100%;" class="theEditor" rows="15"><?php |
569 | 569 | if ( $selection ) |
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 3180f92..c59e0bf 100644
a
|
b
|
function the_editor($content, $id = 'content', $prev_id = 'title', $media_button |
1797 | 1797 | $class = ''; |
1798 | 1798 | |
1799 | 1799 | if ( $richedit || $media_buttons ) { ?> |
1800 | | <div id="editor-toolbar"> |
| 1800 | <div class="editor-toolbar"> |
1801 | 1801 | <?php |
1802 | 1802 | if ( $richedit ) { |
1803 | 1803 | $wp_default_editor = wp_default_editor(); ?> |
1804 | 1804 | <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div> |
1805 | 1805 | <?php if ( 'html' == $wp_default_editor ) { |
1806 | 1806 | add_filter('the_editor_content', 'wp_htmledit_pre'); ?> |
1807 | | <a id="edButtonHTML" class="active hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a> |
1808 | | <a id="edButtonPreview" class="hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a> |
| 1807 | <a id="edButtonHTML-<?php echo $id; ?>" class="edButtonHTML active hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a> |
| 1808 | <a id="edButtonPreview-<?php echo $id; ?>" class="edButtonPreview hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a> |
1809 | 1809 | <?php } else { |
1810 | 1810 | $class = " class='theEditor'"; |
1811 | 1811 | add_filter('the_editor_content', 'wp_richedit_pre'); ?> |
1812 | | <a id="edButtonHTML" class="hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a> |
1813 | | <a id="edButtonPreview" class="active hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a> |
| 1812 | <a id="edButtonHTML-<?php echo $id; ?>" class="edButtonHTML hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a> |
| 1813 | <a id="edButtonPreview-<?php echo $id; ?>" class="edButtonPreview active hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a> |
1814 | 1814 | <?php } |
1815 | 1815 | } |
1816 | 1816 | |
1817 | 1817 | if ( $media_buttons ) { ?> |
1818 | | <div id="media-buttons" class="hide-if-no-js"> |
| 1818 | <div class="media-buttons hide-if-no-js"> |
1819 | 1819 | <?php do_action( 'media_buttons' ); ?> |
1820 | 1820 | </div> |
1821 | 1821 | <?php |
… |
… |
function the_editor($content, $id = 'content', $prev_id = 'title', $media_button |
1824 | 1824 | <?php |
1825 | 1825 | } |
1826 | 1826 | ?> |
1827 | | <div id="quicktags"><?php |
| 1827 | <div id="quicktags-<?php echo $id; ?>" class="quicktags"><?php |
1828 | 1828 | wp_print_scripts( 'quicktags' ); ?> |
1829 | 1829 | <script type="text/javascript">edToolbar()</script> |
1830 | 1830 | </div> |
1831 | 1831 | |
1832 | 1832 | <?php |
1833 | | $the_editor = apply_filters('the_editor', "<div id='editorcontainer'><textarea rows='$rows'$class cols='40' name='$id' tabindex='$tab_index' id='$id'>%s</textarea></div>\n"); |
| 1833 | $the_editor = apply_filters('the_editor', "<div class='editorcontainer'><textarea rows='$rows'$class cols='40' name='$id' tabindex='$tab_index' id='$id' class='the-editor-html-content'>%s</textarea></div>\n"); |
1834 | 1834 | $the_editor_content = apply_filters('the_editor_content', $content); |
1835 | 1835 | |
1836 | 1836 | printf($the_editor, $the_editor_content); |
diff --git a/wp-includes/js/quicktags.dev.js b/wp-includes/js/quicktags.dev.js
index 48b7b6a..db421ba 100644
a
|
b
|
edLinks[edLinks.length] = new edLink('alexking.org' |
154 | 154 | |
155 | 155 | function edShowButton(button, i) { |
156 | 156 | if (button.id == 'ed_img') { |
157 | | document.write('<input type="button" id="' + button.id + '" accesskey="' + button.access + '" class="ed_button" onclick="edInsertImage(edCanvas);" value="' + button.display + '" />'); |
| 157 | document.write('<input type="button" accesskey="' + button.access + '" class="ed_button ' + button.id + '" onclick="edInsertImage(edCanvas);" value="' + button.display + '" />'); |
158 | 158 | } |
159 | 159 | else if (button.id == 'ed_link') { |
160 | | document.write('<input type="button" id="' + button.id + '" accesskey="' + button.access + '" class="ed_button" onclick="edInsertLink(edCanvas, ' + i + ');" value="' + button.display + '" />'); |
| 160 | document.write('<input type="button" accesskey="' + button.access + '" class="ed_button ' + button.id + '" onclick="edInsertLink(edCanvas, ' + i + ');" value="' + button.display + '" />'); |
161 | 161 | } |
162 | 162 | else { |
163 | | document.write('<input type="button" id="' + button.id + '" accesskey="' + button.access + '" class="ed_button" onclick="edInsertTag(edCanvas, ' + i + ');" value="' + button.display + '" />'); |
| 163 | document.write('<input type="button" accesskey="' + button.access + '" class="ed_button ' + button.id + '" onclick="edInsertTag(edCanvas, ' + i + ');" value="' + button.display + '" />'); |
164 | 164 | } |
165 | 165 | } |
166 | 166 | |
… |
… |
function edSpell(myField) { |
253 | 253 | } |
254 | 254 | |
255 | 255 | function edToolbar() { |
256 | | document.write('<div id="ed_toolbar">'); |
| 256 | document.write('<div class="ed_toolbar">'); |
257 | 257 | for (var i = 0; i < edButtons.length; i++) { |
258 | 258 | edShowButton(edButtons[i], i); |
259 | 259 | } |
260 | | document.write('<input type="button" id="ed_spell" class="ed_button" onclick="edSpell(edCanvas);" title="' + quicktagsL10n.dictionaryLookup + '" value="' + quicktagsL10n.lookup + '" />'); |
261 | | document.write('<input type="button" id="ed_close" class="ed_button" onclick="edCloseAllTags();" title="' + quicktagsL10n.closeAllOpenTags + '" value="' + quicktagsL10n.closeTags + '" />'); |
| 260 | document.write('<input type="button" class="ed_button ed_spell" onclick="edSpell(edCanvas);" title="' + quicktagsL10n.dictionaryLookup + '" value="' + quicktagsL10n.lookup + '" />'); |
| 261 | document.write('<input type="button" class="ed_button ed_close" onclick="edCloseAllTags();" title="' + quicktagsL10n.closeAllOpenTags + '" value="' + quicktagsL10n.closeTags + '" />'); |
262 | 262 | // edShowLinks(); // disabled by default |
263 | 263 | document.write('</div>'); |
264 | 264 | } |