Make WordPress Core

Ticket #1799: bookmarklet.2.diff

File bookmarklet.2.diff, 3.2 KB (added by davidhouse, 21 years ago)
  • wp-admin/edit-form.php

     
    1414function focusit() { // focus on first input field
    1515        document.getElementById('title').focus();
    1616}
    17 addLoadEvent(focusit);
     17// addLoadEvent(focusit);
    1818//-->
    1919</script>
    2020
     
    3232<br />
    3333<fieldset id="postdiv">
    3434    <legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with post field') ?>"><?php _e('Post') ?></a></legend>
    35 <?php the_quicktags(); ?>
     35<?php /*the_quicktags();*/ ?>
    3636<?php
    3737 $rows = get_settings('default_post_edit_rows');
    3838 if (($rows < 3) || ($rows > 100)) {
    3939     $rows = 10;
    4040 }
    4141?>
    42 <div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $post->post_content ?></textarea></div>
     42<div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo $post->post_content ?></textarea></div>
    4343</fieldset>
    4444
    4545
    4646<script type="text/javascript">
    4747<!--
    48 edCanvas = document.getElementById('content');
     48// edCanvas = document.getElementById('content');
    4949//-->
    5050</script>
    5151
  • wp-admin/bookmarklet.php

     
    5656<style type="text/css">
    5757<!--
    5858
     59#wpbookmarklet #poststuff {
     60        margin-right: 0px;
     61}
     62
    5963#wpbookmarklet textarea,input,select {
    6064        border-width: 1px;
    6165        border-color: #cccccc;
     
    9094
    9195-->
    9296</style>
     97<?php if ( 'true' == get_user_option('rich_editing') ) :?>
     98<script language="javascript" type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce_gzip.php?index=0&theme=advanced&plugins=wordpress,autosave"></script>
     99<script type="text/javascript">
     100tinyMCE.init({
     101        mode : "specific_textareas",
     102        textarea_trigger : "title",
     103        width : "100%",
     104        theme : "advanced",
     105        theme_advanced_buttons1 : "bold,italic,strikethrough,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,image,emotions,separator,wordpress,separator,undo,redo,code",
     106        theme_advanced_buttons2 : "",
     107        theme_advanced_buttons3 : "",
     108        theme_advanced_toolbar_location : "top",
     109        theme_advanced_toolbar_align : "left",
     110        theme_advanced_path_location : "bottom",
     111        theme_advanced_resizing : true,
     112        browsers : "msie,gecko",
     113        dialog_type : "modal",
     114        theme_advanced_resize_horizontal : false,
     115        entity_encoding : "raw",
     116        relative_urls : false,
     117        remove_script_host : false,
     118        valid_elements : "a[href|title],strong/b,em/i,strike,u,p[class|align],ol,ul,li,br,img[class|src|alt|title|width|height|align],sub,sup,blockquote,table[border=0|cellspacing|cellpadding|width|height|class|align],tr[class|rowspan|width|height|align|valign],td[dir|class|colspan|rowspan|width|height|align|valign],div[dir|class|align],span[class|align],pre[class],address,h1[class|align],h2[class|align],h3[class|align],h4[class|align],h5[class|align],h6[class|align],hr",
     119        plugins : "wordpress,autosave"
     120        <?php do_action('mce_options'); ?>
     121});
     122</script>
     123<?php endif; ?>
    93124</head>
    94125<body id="wpbookmarklet">
    95126<div id="wphead">