Make WordPress Core

Ticket #11862: 11862-patch-rough-draft.diff

File 11862-patch-rough-draft.diff, 19.4 KB (added by chrisbliss18, 13 years ago)

Rough draft patch, issues still present

  • wp-admin/css/colors-classic.dev.css

    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 { 
    484484
    485485a,
    486486#adminmenu a,
    487 #poststuff #edButtonPreview,
    488 #poststuff #edButtonHTML,
     487#poststuff .edButtonPreview,
     488#poststuff .edButtonHTML,
    489489#the-comment-list p.comment-author strong a,
    490490#media-upload a.del-link,
    491491#media-items a.delete,
    table.widefat span.spam a, 
    675675        background-image: url(../images/date-button.gif);
    676676}
    677677
    678 #quicktags #ed_link {
     678.quicktags #ed_link {
    679679        color: #00f;
    680680}
    681681
    table.widefat .spam a:hover, 
    778778}
    779779
    780780/* editors */
    781 #quicktags {
     781.quicktags {
    782782        border-color: #dfdfdf;
    783783        background-color: #dfdfdf;
    784784}
    table.widefat .spam a:hover, 
    796796        border-color: #ededed;
    797797}
    798798
    799 #poststuff #edButtonPreview,
    800 #poststuff #edButtonHTML {
     799#poststuff .edButtonPreview,
     800#poststuff .edButtonHTML {
    801801        background-color: #f2f1eb;
    802802        border-color: #dfdfdf;
    803803        color: #999;
    804804}
    805805
    806 #poststuff #editor-toolbar .active {
     806#poststuff .editor-toolbar .active {
    807807        border-bottom-color: #e3eef7;
    808808        background-color: #e3eef7;
    809809        color: #333;
    810810}
    811811
    812812/* TinyMCE */
    813 #post-status-info {
     813.post-status-info {
    814814        background-color: #ededed;
    815815}
    816816
    table.widefat .spam a:hover, 
    947947        color: #888;
    948948}
    949949
    950 #quicktags,
     950.quicktags,
    951951.wp_themeSkin tr.mceFirst td.mceToolbar {
    952952        background: #e3eef7 url("../images/ed-bg-vs.gif") repeat-x scroll left top;
    953953}
    table.widefat .spam a:hover, 
    10161016}
    10171017/* end TinyMCE */
    10181018
    1019 #editorcontainer,
    1020 #post-status-info,
     1019.editorcontainer,
     1020.post-status-info,
    10211021#titlediv #title,
    10221022.editwidget .widget-inside {
    10231023        border-color: #dfdfdf;
  • wp-admin/css/colors-fresh.dev.css

    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 { 
    480480
    481481a,
    482482#adminmenu a,
    483 #poststuff #edButtonPreview,
    484 #poststuff #edButtonHTML,
     483#poststuff .edButtonPreview,
     484#poststuff .edButtonHTML,
    485485#the-comment-list p.comment-author strong a,
    486486#media-upload a.del-link,
    487487#media-items a.delete,
    table.widefat span.spam a, 
    670670        background-image: url(../images/date-button.gif);
    671671}
    672672
    673 #quicktags #ed_link {
     673.quicktags #ed_link {
    674674        color: #00f;
    675675}
    676676
    table.widefat .spam a:hover, 
    776776}
    777777
    778778/* editors */
    779 #quicktags {
     779.quicktags {
    780780        border-color: #dfdfdf;
    781781        background-color: #dfdfdf;
    782782}
    table.widefat .spam a:hover, 
    794794        border-color: #EDEDED;
    795795}
    796796
    797 #poststuff #edButtonPreview,
    798 #poststuff #edButtonHTML {
     797#poststuff .edButtonPreview,
     798#poststuff .edButtonHTML {
    799799        background-color: #f1f1f1;
    800800        border-color: #dfdfdf;
    801801        color: #999;
    802802}
    803803
    804 #poststuff #editor-toolbar .active {
     804#poststuff .editor-toolbar .active {
    805805        border-bottom-color: #e9e9e9;
    806806        background-color: #e9e9e9;
    807807        color: #333;
    808808}
    809809
    810810/* TinyMCE */
    811 #post-status-info {
     811.post-status-info {
    812812        background-color: #EDEDED;
    813813}
    814814
    table.widefat .spam a:hover, 
    10111011}
    10121012/* end TinyMCE */
    10131013
    1014 #editorcontainer,
    1015 #post-status-info,
     1014.editorcontainer,
     1015.post-status-info,
    10161016#titlediv #title,
    10171017.editwidget .widget-inside {
    10181018        border-color: #dfdfdf;
  • wp-admin/css/dashboard-rtl.css

    diff --git a/wp-admin/css/dashboard-rtl.css b/wp-admin/css/dashboard-rtl.css
    index ce37292..5edeb76 100644
    a b  
    6868#dashboard_quick_press .input-text-wrap, #dashboard_quick_press .textarea-wrap {
    6969        margin: 0 5em 1em 0;
    7070}
    71 #dashboard_quick_press #media-buttons {
     71#dashboard_quick_press .media-buttons {
    7272        margin: 0 5em .5em 0;
    7373        padding: 0 10px 0 0;
    7474}
  • wp-admin/css/dashboard.dev.css

    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 { 
    276276        margin: 0 0 1em 5em;
    277277}
    278278
    279 #dashboard_quick_press #media-buttons {
     279#dashboard_quick_press .media-buttons {
    280280        margin: 0 0 .5em 5em;
    281281        padding: 0 0 0 10px;
    282282        font-size: 11px;
    283283}
    284284
    285 #dashboard_quick_press #media-buttons a {
     285#dashboard_quick_press .media-buttons a {
    286286        vertical-align: bottom;
    287287}
    288288
  • wp-admin/css/ie-rtl.css

    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 { 
    7474        position: absolute;
    7575        right:0;
    7676}
    77 #post-status-info {
     77.post-status-info {
    7878        height: 25px;
    7979}
    8080#screen-meta {
  • wp-admin/css/ie.css

    diff --git a/wp-admin/css/ie.css b/wp-admin/css/ie.css
    index e8eea47..ef9593f 100644
    a b a.button { 
    231231}
    232232
    233233#the-comment-list .comment-item,
    234 #post-status-info,
     234.post-status-info,
    235235#wpwrap,
    236236#wpcontent,
    237237#wrap,
    a.button { 
    241241.metabox-holder,
    242242#titlediv,
    243243#post-body,
    244 #editorcontainer,
     244.editorcontainer,
    245245.tablenav,
    246246.widget-liquid-left,
    247247.widget-liquid-right,
    p.search-box { 
    266266        margin: -3px 0 4px;
    267267}
    268268
    269 * html #editorcontainer {
     269* html .editorcontainer {
    270270        padding: 0;
    271271}
    272272
    273 #editorcontainer #content {
     273.editorcontainer .the-editor-html-content {
    274274        overflow: auto;
    275275        margin: auto;
    276276        width: 98%;
  • wp-admin/css/press-this-rtl.css

    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 { 
    22        font-family: Tahoma, Arial;
    33}
    44
    5 #poststuff #edButtonPreview,
    6 #poststuff #edButtonHTML {
     5#poststuff .edButtonPreview,
     6#poststuff .edButtonHTML {
    77        margin: 0 0 0 5px;
    88        float: right;
    99}
  • wp-admin/css/press-this.dev.css

    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 { 
    2323        background: transparent url(../images/xit.gif) no-repeat 0 0;
    2424}
    2525
    26 #poststuff #edButtonPreview,
    27 #poststuff #edButtonHTML {
     26#poststuff .edButtonPreview,
     27#poststuff .edButtonHTML {
    2828        -moz-border-radius: 3px 3px 0 0;
    2929        -webkit-border-top-right-radius: 3px;
    3030        -webkit-border-top-left-radius: 3px;
    div.zerosize { 
    8080        width: 0;
    8181}
    8282
    83 #poststuff #edButtonPreview.active,
    84 #poststuff #edButtonHTML.active {
     83#poststuff .edButtonPreview.active,
     84#poststuff .edButtonHTML.active {
    8585        display: none;
    8686}
    8787
  • wp-admin/css/wp-admin-rtl.dev.css

    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 { 
    5656#wpcontent select {
    5757        font-family: Tahoma, Arial, sans-serif;
    5858}
    59 #quicktags {
     59.quicktags {
    6060        background-position: right top;
    6161}
    6262/* 500 - 700
    td.available-theme { 
    221221        margin-right: 0;
    222222        margin-left: 5px;
    223223}
    224 #post-status-info {
     224.post-status-info {
    225225        padding: 0 7px 0 15px;
    226226}
    227227#comment-status-radio input {
    td.available-theme { 
    270270.wp_themeSkin tr.mceFirst td.mceToolbar {
    271271        background-position: right top;
    272272}
    273 #poststuff #edButtonPreview,
    274 #poststuff #edButtonHTML {
     273#poststuff .edButtonPreview,
     274#poststuff .edButtonHTML {
    275275        margin: 5px 0 0 5px;
    276276        float: left;
    277277}
    278 #poststuff #edButtonHTML {
     278#poststuff .edButtonHTML {
    279279        margin-right: 0;
    280280        margin-left: 15px;
    281281}
    282 #media-buttons a {
     282.media-buttons a {
    283283        padding: 0 10px 5px 0;
    284284}
    285285.submitbox .submit {
  • wp-admin/css/wp-admin.dev.css

    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 { 
    3232#pass-strength-result.short,
    3333.button-highlighted,
    3434input.button-highlighted,
    35 #quicktags #ed_strong,
     35.quicktags #ed_strong,
    3636#ed_reply_toolbar #ed_reply_strong {
    3737        font-weight: bold;
    3838}
    textarea.all-options, input.all-options { 
    494494        padding-top: 10px;
    495495}
    496496
    497 #content {
     497.the-editor-html-content {
    498498        margin: 0;
    499499        width: 100%;
    500500}
    501501
    502 #editorcontainer #content {
     502.editorcontainer .the-editor-html-content {
    503503        padding: 6px;
    504504        line-height: 150%;
    505505        border: 0 none;
    textarea.all-options, input.all-options { 
    510510        box-sizing: border-box;
    511511}
    512512
    513 #editorcontainer,
    514 #quicktags {
     513.editorcontainer,
     514.quicktags {
    515515        border-style: solid;
    516516        border-width: 1px;
    517517        border-collapse: separate;
    textarea.all-options, input.all-options { 
    524524        border-top-left-radius: 6px;
    525525}
    526526
    527 #quicktags {
     527.quicktags {
    528528        padding: 0;
    529529        margin-bottom: -3px;
    530530        border-bottom-width: 3px;
    textarea.all-options, input.all-options { 
    533533        background-repeat: repeat-x;
    534534}
    535535
    536 #quicktags #ed_toolbar {
     536.quicktags #ed_toolbar {
    537537        padding: 2px 4px 0;
    538538}
    539539
    textarea.all-options, input.all-options { 
    551551        margin: 1px 2px 1px 1px;
    552552}
    553553
    554 #quicktags #ed_link,
     554.quicktags #ed_link,
    555555#ed_reply_toolbar #ed_reply_link {
    556556        text-decoration: underline;
    557557}
    558558
    559 #quicktags #ed_del,
     559.quicktags #ed_del,
    560560#ed_reply_toolbar #ed_reply_del {
    561561        text-decoration: line-through;
    562562}
    563563
    564 #quicktags #ed_em,
     564.quicktags #ed_em,
    565565#ed_reply_toolbar #ed_reply_em {
    566566        font-style: italic;
    567567}
    span.description, 
    15241524        width: 68%;
    15251525}
    15261526
    1527 #post-status-info {
     1527.post-status-info {
     1528        line-height: 1.4em;
    15281529        border-width: 0 1px 1px;
    15291530        border-style: none solid solid;
    15301531        width: 100%;
    span.description, 
    15371538        border-bottom-right-radius: 6px;
    15381539}
    15391540
    1540 #post-status-info td {
     1541.post-status-info td {
    15411542        font-size: 11px;
    15421543}
    15431544
    span.description, 
    15461547        text-align: right;
    15471548}
    15481549
    1549 #editorcontent #post-status-info {
     1550#editorcontent .post-status-info {
    15501551        border: none;
    15511552}
    15521553
    input#link_url { 
    18421843        right: 10px;
    18431844}
    18441845
    1845 #poststuff #editor-toolbar {
     1846#poststuff .editor-toolbar {
    18461847        height: 30px;
    18471848}
    18481849
    input#link_url { 
    18511852        border-style: none none solid;
    18521853}
    18531854
    1854 #edButtonPreview,
    1855 #edButtonHTML {
     1855.edButtonPreview,
     1856.edButtonHTML {
    18561857        height: 18px;
    18571858        margin: 5px 5px 0 0;
    18581859        padding: 4px 5px 2px;
    input#link_url { 
    18731874        color: white;
    18741875}
    18751876
    1876 #poststuff #edButtonHTML {
     1877#poststuff .edButtonHTML {
    18771878        margin-right: 15px;
    18781879}
    18791880
    1880 #media-buttons {
     1881.media-buttons {
    18811882        cursor: default;
    18821883        padding: 8px 8px 0;
    18831884}
    18841885
    1885 #media-buttons a {
     1886.media-buttons a {
    18861887        cursor: pointer;
    18871888        padding: 0 0 5px 10px;
    18881889}
    18891890
    1890 #media-buttons img,
     1891.media-buttons img,
    18911892#submitpost #ajax-loading {
    18921893        vertical-align: middle;
    18931894}
    fieldset { 
    23992400        padding: 2px;
    24002401}
    24012402
    2402 #replyrow #editorcontainer {
     2403#replyrow .editorcontainer {
    24032404        border: 0 none;
    24042405}
    24052406
  • wp-admin/edit-form-advanced.php

    diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
    index 78cbde7..f5e4213 100644
    a b endif; ?> 
    211211
    212212<?php the_editor($post->post_content); ?>
    213213
    214 <table id="post-status-info" cellspacing="0"><tbody><tr>
     214<table class="post-status-info" cellspacing="0"><tbody><tr>
    215215        <td id="wp-word-count"></td>
    216216        <td class="autosave-info">
    217217        <span id="autosave">&nbsp;</span>
  • wp-admin/includes/dashboard.php

    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() { 
    398398                </div>
    399399
    400400                <?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">
    402402                        <?php do_action( 'media_buttons' ); ?>
    403403                </div>
    404404                <?php endif; ?>
  • wp-admin/js/editor.dev.js

    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($){ 
    99                if ( typeof tinyMCE != 'object' ) {
    1010                        $('#content').css('color', '#000');
    1111                } else {
    12                         $('#quicktags').hide();
     12                        $('.quicktags').hide();
    1313                }
    1414        }
    1515});
    var switchEditors = { 
    8383                id = id || 'content';
    8484                mode = mode || this.mode || '';
    8585
    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);
    8787
    8888                try { ed = tinyMCE.get(id); }
    8989                catch(e) { ed = false; }
    var switchEditors = { 
    9595                        setUserSetting( 'editor', 'tinymce' );
    9696                        this.mode = 'html';
    9797
    98                         P.className = 'active';
    99                         H.className = '';
     98                        jQuery(P).addClass('active');
     99                        jQuery(H).removeClass('active');
    100100                        edCloseAllTags(); // :-(
    101101                        qt.style.display = 'none';
    102102
    var switchEditors = { 
    115115                        setUserSetting( 'editor', 'html' );
    116116                        ta.style.color = '#000';
    117117                        this.mode = 'tinymce';
    118                         H.className = 'active';
    119                         P.className = '';
     118                        jQuery(H).addClass('active');
     119                        jQuery(P).removeClass('active');
    120120
    121121                        if ( ed && !ed.isHidden() ) {
    122122                                ta.style.height = ed.getContentAreaContainer().offsetHeight + 24 + 'px';
  • wp-admin/press-this.php

    diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php
    index a456b0c..4f2f8e0 100644
    a b var photostorage = false; 
    557557                                <li id="switcher">
    558558                                        <?php wp_print_scripts( 'quicktags' ); ?>
    559559                                        <?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>
    562562                                        <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('content')" /></div>
    563563                                </li>
    564564                                <?php } ?>
    565565                        </ul>
    566                         <div id="quicktags"></div>
     566                        <div class="quicktags"></div>
    567567                        <div class="editor-container">
    568568                                <textarea name="content" id="content" style="width:100%;" class="theEditor" rows="15"><?php
    569569                                        if ( $selection )
  • wp-includes/general-template.php

    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 
    17971797        $class = '';
    17981798
    17991799        if ( $richedit || $media_buttons ) { ?>
    1800         <div id="editor-toolbar">
     1800        <div class="editor-toolbar">
    18011801<?php
    18021802        if ( $richedit ) {
    18031803                $wp_default_editor = wp_default_editor(); ?>
    18041804                <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div>
    18051805<?php   if ( 'html' == $wp_default_editor ) {
    18061806                        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>
    18091809<?php   } else {
    18101810                        $class = " class='theEditor'";
    18111811                        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>
    18141814<?php   }
    18151815        }
    18161816
    18171817        if ( $media_buttons ) { ?>
    1818                 <div id="media-buttons" class="hide-if-no-js">
     1818                <div class="media-buttons hide-if-no-js">
    18191819<?php   do_action( 'media_buttons' ); ?>
    18201820                </div>
    18211821<?php
    function the_editor($content, $id = 'content', $prev_id = 'title', $media_button 
    18241824<?php
    18251825        }
    18261826?>
    1827         <div id="quicktags"><?php
     1827        <div id="quicktags-<?php echo $id; ?>" class="quicktags"><?php
    18281828        wp_print_scripts( 'quicktags' ); ?>
    18291829        <script type="text/javascript">edToolbar()</script>
    18301830        </div>
    18311831
    18321832<?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");
    18341834        $the_editor_content = apply_filters('the_editor_content', $content);
    18351835
    18361836        printf($the_editor, $the_editor_content);
  • wp-includes/js/quicktags.dev.js

    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' 
    154154
    155155function edShowButton(button, i) {
    156156        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 + '" />');
    158158        }
    159159        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 + '" />');
    161161        }
    162162        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 + '"  />');
    164164        }
    165165}
    166166
    function edSpell(myField) { 
    253253}
    254254
    255255function edToolbar() {
    256         document.write('<div id="ed_toolbar">');
     256        document.write('<div class="ed_toolbar">');
    257257        for (var i = 0; i < edButtons.length; i++) {
    258258                edShowButton(edButtons[i], i);
    259259        }
    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 + '" />');
    262262//      edShowLinks(); // disabled by default
    263263        document.write('</div>');
    264264}