WordPress.org

Make WordPress Core

Changeset 27581


Ignore:
Timestamp:
03/18/2014 03:47:59 AM (8 years ago)
Author:
azaozz
Message:

TinyMCE gallery preview: fix editing the same gallery multiple times. Instead of .data() use .attr('data-...'), jQuery caches the former. Props gcorne, see #26959

File:
1 edited

Legend:

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

    r27580 r27581  
    301301                frame, data;
    302302
    303             data = window.decodeURIComponent( $( node ).data('wpview-text') );
     303            data = window.decodeURIComponent( $( node ).attr('data-wpview-text') );
    304304            frame = gallery.edit( data );
    305305
Note: See TracChangeset for help on using the changeset viewer.