Changeset 9867
- Timestamp:
- 11/25/2008 02:06:52 AM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
-
css/press-this.css (modified) (2 diffs)
-
press-this.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/press-this.css
r9857 r9867 48 48 line-height: 18px; 49 49 float: left; 50 float: left; 51 } 52 53 50 } 54 51 55 52 .howto { … … 437 434 } 438 435 436 #content { 437 width: 96% !important; 438 margin-left: 1%; 439 margin-bottom: 10px; 440 border: 1px solid #f1f1f1; 441 } 442 439 443 /* Submit */ 444 445 #saving { 446 display: inline; 447 padding-top: 5px; 448 } 440 449 441 450 .submit input, -
trunk/wp-admin/press-this.php
r9866 r9867 128 128 <h2><label for="embed-code"><?php _e('Embed Code') ?></label></h2> 129 129 <div class="inside"> 130 131 130 <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> 134 132 </div> 135 133 </div> … … 141 139 tb_remove(); 142 140 }); 143 144 141 jQuery('.select').click(function() { 145 142 image_selector(); … … 298 295 jQuery('.photolist').append('<input name="photo_src[' + length + ']" value="' + img +'" type="hidden"/>'); 299 296 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>')); 301 298 } 302 299 return false; … … 386 383 function insert_editor(text) { 387 384 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'}); 389 386 } else { 390 387 insert_plain_editor(text); … … 458 455 <?php } ?> 459 456 460 jQuery('#publish, #save').click(function() { alert('test');jQuery('#saving').css('display', 'inline'); });457 jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); }); 461 458 }); 462 459 </script>
Note: See TracChangeset
for help on using the changeset viewer.