Make WordPress Core

Ticket #29380: 29380.patch

File 29380.patch, 804 bytes (added by iseulde, 10 years ago)
  • wp-includes/js/tinymce/plugins/wpview/plugin.js

     
    647647
    648648        editor.on( 'BeforeExecCommand', function() {
    649649                var node = editor.selection.getNode(),
    650                         view;
     650                        before, view;
    651651
    652                 if ( node && ( node.className === 'wpview-selection-before' || node.className === 'wpview-selection-after' ) && ( view = getView( node ) ) ) {
    653                         handleEnter( view );
     652                if ( node && ( ( before = node.className === 'wpview-selection-before' ) || node.className === 'wpview-selection-after' ) && ( view = getView( node ) ) ) {
     653                        handleEnter( view, before );
    654654                        execCommandView = view;
    655655                }
    656656        });