diff --git a/wp-admin/b2edit.form.php b/wp-admin/b2edit.form.php index 4398f783e5..17817e1a0c 100644 --- a/wp-admin/b2edit.form.php +++ b/wp-admin/b2edit.form.php @@ -162,7 +162,7 @@ if ($action != 'editcomment') { } ?> - + Quicktags: '; @@ -192,7 +192,7 @@ edCanvas = document.getElementById('content'); if (get_settings('use_geo_positions')) { ?>   -  click for Geo Info +  click for Geo Info
'; ed0.tagEnd = ''; +ed0.access = 'b'; var ed1 = new edButton(); -ed1.id = 'ed_italic'; -ed1.display = 'I'; +ed1.id = 'ed_em'; +ed1.display = 'i'; ed1.tagStart = ''; ed1.tagEnd = ''; +ed1.access = 'i'; var ed2 = new edButton(); -ed2.id = 'ed_under'; -ed2.display = 'U'; -ed2.tagStart = ''; -ed2.tagEnd = ''; +ed2.id = 'ed_del'; +ed2.display = 'del'; +ed2.tagStart = ''; +ed2.tagEnd = ''; +ed2.access = 'd'; var ed3 = new edButton(); -ed3.id = 'ed_strike'; -ed3.display = 'S'; -ed3.tagStart = ''; -ed3.tagEnd = ''; +ed3.id = 'ed_ins'; +ed3.display = 'ins'; +ed3.tagStart = ''; +ed3.tagEnd = ''; +ed3.access = 'n'; var ed4 = new edButton(); -ed4.id = 'ed_quot'; -ed4.display = '"'; -ed4.tagStart = '"'; -ed4.tagEnd = '"'; -ed4.open = -1; +ed4.id = 'ed_link'; +ed4.display = 'link'; +ed4.tagStart = ''; // special case +ed4.tagEnd = ''; +ed4.access = 'a'; var ed5 = new edButton(); -ed5.id = 'ed_amp'; -ed5.display = '&'; -ed5.tagStart = '&'; +ed5.id = 'ed_img'; +ed5.display = 'img'; +ed5.tagStart = ''; // special case ed5.tagEnd = ''; ed5.open = -1; +ed5.access = 'm'; var ed6 = new edButton(); -ed6.id = 'ed_nbsp'; -ed6.display = 'nbsp'; -ed6.tagStart = ' '; -ed6.tagEnd = ''; -ed6.open = -1; +ed6.id = 'ed_ul'; +ed6.display = 'ul'; +ed6.tagStart = ''; +ed6.access = 'u'; var ed7 = new edButton(); -ed7.id = 'ed_nobr'; -ed7.display = 'nobr'; -ed7.tagStart = ''; -ed7.tagEnd = ''; +ed7.id = 'ed_ol'; +ed7.display = 'ol'; +ed7.tagStart = '
    \n'; +ed7.tagEnd = '
'; +ed7.access = 'o'; var ed8 = new edButton(); -ed8.id = 'ed_link'; -ed8.display = 'link'; -ed8.tagStart = ''; // special case -ed8.tagEnd = ''; +ed8.id = 'ed_li'; +ed8.display = 'li'; +ed8.tagStart = '\t
  • '; +ed8.tagEnd = '
  • \n'; +ed8.access = 'l'; var ed9 = new edButton(); -ed9.id = 'ed_img'; -ed9.display = 'img'; -ed9.tagStart = ''; // special case -ed9.tagEnd = ''; -ed9.open = -1; +ed9.id = 'ed_block'; +ed9.display = 'b-quote'; +ed9.tagStart = '
    '; +ed9.tagEnd = '
    '; +ed9.access = 'q'; var ed10 = new edButton(); -ed10.id = 'ed_ul'; -ed10.display = 'UL'; -ed10.tagStart = ''; +ed10.id = 'ed_pre'; +ed10.display = 'pre'; +ed10.tagStart = '
    ';
    +ed10.tagEnd = '
    '; +ed10.access = ''; -var ed11 = new edButton(); -ed11.id = 'ed_ol'; -ed11.display = 'OL'; -ed11.tagStart = '
      '; -ed11.tagEnd = '
    '; - -var ed12 = new edButton(); -ed12.id = 'ed_li'; -ed12.display = 'LI'; -ed12.tagStart = '
  • '; -ed12.tagEnd = '
  • '; - -var ed13 = new edButton(); -ed13.id = 'ed_block'; -ed13.display = 'b-quote'; -ed13.tagStart = '
    '; -ed13.tagEnd = '
    '; - -var ed14 = new edButton(); -ed14.id = 'ed_pre'; -ed14.display = 'pre'; -ed14.tagStart = '
    ';
    -ed14.tagEnd = '
    '; - -var edButtonCount = 15; +var edButtonCount = 11; function edShowButton(button, i) { if (button.id == 'ed_img') { - document.write(''); + document.write(''); } else if (button.id == 'ed_link') { - document.write(''); + document.write(''); } else { - document.write(''); + document.write(''); } } @@ -167,7 +162,7 @@ function edLink() { var edLink0 = new edLink; edLink0.display = 'WordPress'; -edLink0.URL = 'http://www.wordpress.org/'; +edLink0.URL = 'http://wordpress.org/'; var edLink1 = new edLink; edLink1.display = 'alexking.org'; @@ -225,8 +220,8 @@ function edToolbar() { for (i = 0; i < edButtonCount; i++) { edShowButton(eval('ed' + i), i); } - document.write(''); - document.write(''); + document.write(''); + document.write(''); // edShowLinks(); // disabled by default document.write(''); } @@ -325,7 +320,7 @@ function edInsertContent(myField, myValue) { function edInsertLink(myField, i) { if (!edCheckOpenTags(i)) { - eval('ed' + i + '.tagStart = \'\''); + eval('ed' + i + '.tagStart = \'\''); } edInsertTag(myField, i); }