Skip to content

Commit

Permalink
Restore data-mce-selected for video overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Mar 6, 2017
1 parent 1abfb44 commit 7e1e0ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tinymce-single/tinymce/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,11 @@
event.preventDefault();
}
} );

editor.on( 'nodeChange', function() {
editor.$( editor.getBody() ).children().attr( 'data-mce-selected', null );
editor.$( getSelectedBlock() ).attr( 'data-mce-selected', 'true' );
} );
} );
} );
} )( window.tinymce, window.wp, window._ );

0 comments on commit 7e1e0ab

Please sign in to comment.