Make WordPress Core

Changeset 8245


Ignore:
Timestamp:
07/03/2008 05:11:00 AM (18 years ago)
Author:
ryan
Message:

Image caption fixes from azaozz. see #6812

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/media-upload.js

    r8239 r8245  
    66                        ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark);
    77
     8                if ( h.indexOf('[wp_caption') != -1 )
     9                        h = ed.plugins.wpeditimage._do_shcode(h);
     10               
    811                ed.execCommand('mceInsertContent', false, h);
    9                 ed.execCommand('mceCleanup');
    1012        } else
    1113                edInsertContent(edCanvas, h);
  • trunk/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js

    r8239 r8245  
    461461                        return;
    462462                } else {
    463                         if ( DL ) {
     463                        if ( DL && DIV ) {
    464464                                if ( f.link_href.value ) html = ed.dom.getOuterHTML(ed.dom.getParent(el, 'a'));
    465465                                else html = ed.dom.getOuterHTML(el);
    466466                               
    467467                                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);
    471470                        }
    472471                }
  • trunk/wp-includes/js/tinymce/tiny_mce_config.php

    r8204 r8245  
    223223if ( $disk_cache ) {
    224224
    225         $cacheKey = apply_filters('tiny_mce_version', '20080626');
     225        $cacheKey = apply_filters('tiny_mce_version', '20080702');
    226226
    227227        foreach ( $initArray as $v )
  • trunk/wp-includes/script-loader.php

    r8243 r8245  
    3535        $scripts->add( 'editor', false, $visual_editor, '20080321' );
    3636
    37         $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080701' );
     37        $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080702' );
    3838
    3939        // Modify this version when tinyMCE plugins are changed.
    … …  
    160160                ) );
    161161                $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' ), '20080701' );
     162                $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20080702' );
    163163                $scripts->localize( 'upload', 'uploadL10n', array(
    164164                        'browseTitle' => attribute_escape(__('Browse your files')),
Note: See TracChangeset for help on using the changeset viewer.