Ticket #22053: 22053.4.diff
| File 22053.4.diff, 753 bytes (added by dannydehaan, 8 months ago) |
|---|
-
class-wp-editor.php
608 608 try { tinymce.init(init); } catch(e){} 609 609 } 610 610 } else { 611 el = document.getElementsByClassName('wp-editor-wrap'); 612 for ( i in el ) { 613 if ( typeof(el[i]) == 'object' ) 614 el[i].onmousedown = function(){ wpActiveEditor = this.id.slice(3, -5); } 615 } 611 jQuery( document ).find('.wp-editor-wrap').each(function( e ) { 612 if ( typeof( jQuery( this ) ) == 'object' ) 613 jQuery(this).onmousedown = function(){ wpActiveEditor = jQuery(this).attr('id').slice(3, -5); } 614 }); 616 615 } 617 616 618 617 if ( typeof(QTags) == 'function' ) {
