WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/22/2006 07:04:41 AM (14 years ago)
Author:
ryan
Message:

Tabbed editor from skeltoac. fixes #2829

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4202 r4206  
    12511251}
    12521252
    1253 function the_quicktags() {
    1254         echo '
    1255         <div id="quicktags">
    1256             ';
    1257         wp_print_scripts( 'quicktags' );
    1258         echo '          <script type="text/javascript">
    1259                 //<![CDATA[
    1260                 if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();
    1261                 //]]>
    1262             </script>
    1263         </div>
    1264 ';
    1265     echo '
    1266 <script type="text/javascript">
    1267 function edInsertContent(myField, myValue) {
    1268     //IE support
    1269     if (document.selection) {
    1270         myField.focus();
    1271         sel = document.selection.createRange();
    1272         sel.text = myValue;
    1273         myField.focus();
    1274     }
    1275     //MOZILLA/NETSCAPE support
    1276     else if (myField.selectionStart || myField.selectionStart == "0") {
    1277         var startPos = myField.selectionStart;
    1278         var endPos = myField.selectionEnd;
    1279         myField.value = myField.value.substring(0, startPos)
    1280                       + myValue
    1281                       + myField.value.substring(endPos, myField.value.length);
    1282         myField.focus();
    1283         myField.selectionStart = startPos + myValue.length;
    1284         myField.selectionEnd = startPos + myValue.length;
    1285     } else {
    1286         myField.value += myValue;
    1287         myField.focus();
    1288     }
    1289 }
    1290 </script>
    1291 ';
    1292 }
    1293 
    12941253function get_broken_themes() {
    12951254    global $wp_broken_themes;
Note: See TracChangeset for help on using the changeset viewer.