Ticket #6812: img-captions3.patch
File img-captions3.patch, 2.9 KB (added by , 16 years ago) |
---|
-
wp-admin/js/media-upload.js
5 5 if (tinymce.isIE) 6 6 ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark); 7 7 8 if ( h.indexOf('[wp_caption') != -1 ) 9 h = ed.plugins.wpeditimage._do_shcode(h); 10 8 11 ed.execCommand('mceInsertContent', false, h); 9 ed.execCommand('mceCleanup');10 12 } else 11 13 edInsertContent(edCanvas, h); 12 14 -
wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js
460 460 tinyMCEPopup.close(); 461 461 return; 462 462 } else { 463 if ( DL ) {463 if ( DL && DIV ) { 464 464 if ( f.link_href.value ) html = ed.dom.getOuterHTML(ed.dom.getParent(el, 'a')); 465 465 else html = ed.dom.getOuterHTML(el); 466 466 467 467 P = ed.dom.create('p', {}, html); 468 DL.parentNode.insertBefore(P,DL); 469 ed.dom.remove(DL.childNodes); 470 ed.dom.remove(DL); 468 DIV.parentNode.insertBefore(P, DIV); 469 ed.dom.remove(DIV); 471 470 } 472 471 } 473 472 -
wp-includes/js/tinymce/tiny_mce_config.php
222 222 // Setup cache info 223 223 if ( $disk_cache ) { 224 224 225 $cacheKey = apply_filters('tiny_mce_version', '20080 626');225 $cacheKey = apply_filters('tiny_mce_version', '20080702'); 226 226 227 227 foreach ( $initArray as $v ) 228 228 $cacheKey .= $v; -
wp-includes/script-loader.php
34 34 $visual_editor = apply_filters('visual_editor', array('tiny_mce')); 35 35 $scripts->add( 'editor', false, $visual_editor, '20080321' ); 36 36 37 $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '2008070 1' );37 $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080702' ); 38 38 39 39 // Modify this version when tinyMCE plugins are changed. 40 40 $mce_version = apply_filters('tiny_mce_version', '20080701'); … … 159 159 'edit' => __('Edit'), 160 160 ) ); 161 161 $scripts->add( 'admin-gallery', '/wp-admin/js/gallery.js', array( 'jquery-ui-sortable' ), '20080520' ); 162 $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '2008070 1' );162 $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20080702' ); 163 163 $scripts->localize( 'upload', 'uploadL10n', array( 164 164 'browseTitle' => attribute_escape(__('Browse your files')), 165 165 'back' => __('« Back'),