Make WordPress Core

Changeset 9867


Ignore:
Timestamp:
11/25/2008 02:06:52 AM (17 years ago)
Author:
azaozz
Message:

More PressThis updates from Noel, see #7949

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/press-this.css

    r9857 r9867  
    4848    line-height: 18px;
    4949    float: left;
    50     float: left;
    51 }
    52 
    53 
     50}
    5451
    5552.howto {
     
    437434}
    438435
     436#content {
     437    width: 96% !important;
     438    margin-left: 1%;
     439    margin-bottom: 10px;
     440    border: 1px solid #f1f1f1;
     441}
     442
    439443/* Submit */
     444
     445#saving {
     446    display: inline;
     447    padding-top: 5px;
     448}
    440449
    441450.submit input,
  • trunk/wp-admin/press-this.php

    r9866 r9867  
    128128        <h2><label for="embed-code"><?php _e('Embed Code') ?></label></h2>
    129129        <div class="inside">
    130 
    131130            <textarea name="embed-code" id="embed-code" rows="8" cols="40"><?php echo format_to_edit($selection, true); ?></textarea>
    132 
    133         <p id="options"><a href="#" class="select button"><?php _e('Insert Video'); ?></a> <a href="#" class="close button"><?php _e('Cancel'); ?></a></p>
     131            <p id="options"><a href="#" class="select button"><?php _e('Insert Video'); ?></a> <a href="#" class="close button"><?php _e('Cancel'); ?></a></p>
    134132        </div>
    135133        </div>
     
    141139                tb_remove();
    142140            });
    143 
    144141            jQuery('.select').click(function() {
    145142                image_selector();
     
    298295                jQuery('.photolist').append('<input name="photo_src[' + length + ']" value="' + img +'" type="hidden"/>');
    299296                jQuery('.photolist').append('<input name="photo_description[' + length + ']" value="' + desc +'" type="hidden"/>');
    300                 insert_editor( "\n\n" + '<p style="text-align: center;"><a href="<?php echo $url; ?>"><img src="' + img +'" alt="' + desc + '" /></a></p>');
     297                insert_editor( "\n\n" + encodeURI('<p style="text-align: center;"><a href="<?php echo $url; ?>"><img src="' + img +'" alt="' + desc + '" /></a></p>'));
    301298            }
    302299            return false;
     
    386383    function insert_editor(text) {
    387384        if ( '' != text && tinyMCE.activeEditor && ! tinyMCE.activeEditor.isHidden()) {
    388             tinyMCE.execCommand('mceInsertContent', false, '<p>' + tinymce.DOM.decode(text) + '</p>', {format : 'raw'});
     385            tinyMCE.execCommand('mceInsertContent', false, '<p>' + decodeURI(tinymce.DOM.decode(text)) + '</p>', {format : 'raw'});
    389386        } else {
    390387            insert_plain_editor(text);
     
    458455        <?php } ?>
    459456       
    460         jQuery('#publish, #save').click(function() { alert('test'); jQuery('#saving').css('display', 'inline'); });
     457        jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); });
    461458    });
    462459</script>
Note: See TracChangeset for help on using the changeset viewer.