WordPress.org

Make WordPress Core

Changeset 28190


Ignore:
Timestamp:
04/23/2014 08:41:59 PM (5 years ago)
Author:
azaozz
Message:

TinyMCE: when adding a caption to an image that is in a paragraph with other text, move the caption node above the paragraph instead of below. See #27922, for trunk.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r28095 r28190  
    321321                if ( parent = dom.getParent( node, 'p' ) ) {
    322322                    wrap = dom.create( 'div', { 'class': 'mceTemp' }, html );
    323                     dom.insertAfter( wrap, parent );
     323                    parent.parentNode.insertBefore( wrap, parent );
    324324                    dom.remove( node );
    325325
     
    594594                    if ( parent && parent.nodeName === 'P' ) {
    595595                        wrap = dom.create( 'div', { 'class': 'mceTemp' }, html );
    596                         dom.insertAfter( wrap, parent );
     596                        parent.parentNode.insertBefore( wrap, parent );
    597597                        editor.selection.select( wrap );
    598598                        editor.nodeChanged();
  • trunk/src/wp-includes/version.php

    r28157 r28190  
    1919 * @global string $tinymce_version
    2020 */
    21 $tinymce_version = '4021-20140412';
     21$tinymce_version = '4021-20140423';
    2222
    2323/**
Note: See TracChangeset for help on using the changeset viewer.