Changeset 26881
- Timestamp:
- 12/30/2013 07:16:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r26876 r26881 812 812 } 813 813 } 814 815 if ( typeof jQuery !== 'undefined' ) { 816 jQuery('.wp-editor-wrap').on( 'click.wp-editor', function() { 817 if ( this.id ) { 818 window.wpActiveEditor = this.id.slice( 3, -5 ); 819 } 820 }); 821 } else { 822 for ( qtId in tinyMCEPreInit.qtInit ) { 823 document.getElementById( 'wp-' + qtId + '-wrap' ).onclick = function() { 824 window.wpActiveEditor = this.id.slice( 3, -5 ); 825 } 826 } 827 } 814 828 }()); 815 816 829 </script> 817 830 <?php 818 831 819 if ( in_array( 'wplink', self::$plugins, true) || in_array('link', self::$qt_buttons, true) )832 if ( in_array( 'wplink', self::$plugins, true ) || in_array( 'link', self::$qt_buttons, true ) ) 820 833 self::wp_link_dialog(); 821 834 822 if ( in_array( 'wpfullscreen', self::$plugins, true) || in_array('fullscreen', self::$qt_buttons, true) )835 if ( in_array( 'wpfullscreen', self::$plugins, true ) || in_array( 'fullscreen', self::$qt_buttons, true ) ) 823 836 self::wp_fullscreen_html(); 824 837
Note: See TracChangeset
for help on using the changeset viewer.