Skip to content

Commit

Permalink
Don't clone temporary attributes on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Mar 14, 2017
1 parent 0262803 commit c38fb24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tinymce-single/tinymce/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@
}
} );

editor.on( 'keyup', function( event ) {
if ( event.keyCode === tinymce.util.VK.ENTER ) {
editor.$( editor.selection.getNode() ).attr( 'data-wp-placeholder', null );
}
editor.on( 'newBlock', function( event ) {
editor.$( event.newBlock )
.attr( 'data-wp-placeholder', null )
.attr( 'data-wp-block-selected', null );
} );

// Attach block UI.
Expand Down

0 comments on commit c38fb24

Please sign in to comment.