WordPress.org

Make WordPress Core

Changeset 31731


Ignore:
Timestamp:
03/11/2015 10:39:29 PM (3 years ago)
Author:
azaozz
Message:

TinyMCE wpViews: use the real attribute value instead of the cached jQuery data. Fixes updating of the wpView text strings.
Props iseulde. Fixes #31601.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mce-view.js

    r31725 r31731  
    182182            }
    183183
    184             return instances[ $( object ).data( 'wpview-text' ) ];
     184            return instances[ $( object ).attr( 'data-wpview-text' ) ];
    185185        },
    186186
     
    193193         */
    194194        getText: function( node ) {
    195             return decodeURIComponent( $( node ).data( 'wpview-text' ) || '' );
     195            return decodeURIComponent( $( node ).attr( 'data-wpview-text' ) || '' );
    196196        },
    197197
Note: See TracChangeset for help on using the changeset viewer.