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

git-svn-id: https://develop.svn.wordpress.org/trunk@27581 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-03-18 03:47:59 +00:00
parent 8e403519db
commit ed10dd815e

View File

@ -300,7 +300,7 @@ window.wp = window.wp || {};
self = this,
frame, data;
data = window.decodeURIComponent( $( node ).data('wpview-text') );
data = window.decodeURIComponent( $( node ).attr('data-wpview-text') );
frame = gallery.edit( data );
frame.state('gallery-edit').on( 'update', function( selection ) {