1298 'Cell properties' => __( 'Table cell properties' ), |
1298 'Cell properties' => __( 'Table cell properties' ), |
1299 'Border color' => __( 'Border color' ), |
1299 'Border color' => __( 'Border color' ), |
1300 |
1300 |
1301 'Row' => __( 'Row' ), |
1301 'Row' => __( 'Row' ), |
1302 'Rows' => __( 'Rows' ), |
1302 'Rows' => __( 'Rows' ), |
1303 'Column' => _x( 'Column', 'table column' ), |
1303 'Column' => __( 'Column' ), |
1304 'Cols' => _x( 'Cols', 'table columns' ), |
1304 'Cols' => __( 'Columns' ), |
1305 'Cell' => _x( 'Cell', 'table cell' ), |
1305 'Cell' => _x( 'Cell', 'table cell' ), |
1306 'Header cell' => __( 'Header cell' ), |
1306 'Header cell' => __( 'Header cell' ), |
1307 'Header' => _x( 'Header', 'table header' ), |
1307 'Header' => _x( 'Header', 'table header' ), |
1308 'Body' => _x( 'Body', 'table body' ), |
1308 'Body' => _x( 'Body', 'table body' ), |
1309 'Footer' => _x( 'Footer', 'table footer' ), |
1309 'Footer' => _x( 'Footer', 'table footer' ), |
1661 } |
1661 } |
1662 |
1662 |
1663 ?> |
1663 ?> |
1664 |
1664 |
1665 ( function() { |
1665 ( function() { |
1666 var init, id, $wrap; |
1666 var initialized = []; |
|
1667 var initialize = function() { |
|
1668 var init, id, inPostbox, $wrap; |
|
1669 var readyState = document.readyState; |
|
1670 |
|
1671 if ( readyState !== 'complete' && readyState !== 'interactive' ) { |
|
1672 return; |
|
1673 } |
|
1674 |
|
1675 for ( id in tinyMCEPreInit.mceInit ) { |
|
1676 if ( initialized.indexOf( id ) > -1 ) { |
|
1677 continue; |
|
1678 } |
|
1679 |
|
1680 init = tinyMCEPreInit.mceInit[id]; |
|
1681 $wrap = tinymce.$( '#wp-' + id + '-wrap' ); |
|
1682 inPostbox = $wrap.parents( '.postbox' ).length > 0; |
|
1683 |
|
1684 if ( |
|
1685 ! init.wp_skip_init && |
|
1686 ( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) && |
|
1687 ( readyState === 'complete' || ( ! inPostbox && readyState === 'interactive' ) ) |
|
1688 ) { |
|
1689 tinymce.init( init ); |
|
1690 initialized.push( id ); |
|
1691 |
|
1692 if ( ! window.wpActiveEditor ) { |
|
1693 window.wpActiveEditor = id; |
|
1694 } |
|
1695 } |
|
1696 } |
|
1697 } |
1667 |
1698 |
1668 if ( typeof tinymce !== 'undefined' ) { |
1699 if ( typeof tinymce !== 'undefined' ) { |
1669 if ( tinymce.Env.ie && tinymce.Env.ie < 11 ) { |
1700 if ( tinymce.Env.ie && tinymce.Env.ie < 11 ) { |
1670 tinymce.$( '.wp-editor-wrap ' ).removeClass( 'tmce-active' ).addClass( 'html-active' ); |
1701 tinymce.$( '.wp-editor-wrap ' ).removeClass( 'tmce-active' ).addClass( 'html-active' ); |
1671 return; |
1702 } else { |
1672 } |
1703 if ( document.readyState === 'complete' ) { |
1673 |
1704 initialize(); |
1674 for ( id in tinyMCEPreInit.mceInit ) { |
1705 } else { |
1675 init = tinyMCEPreInit.mceInit[id]; |
1706 document.addEventListener( 'readystatechange', initialize ); |
1676 $wrap = tinymce.$( '#wp-' + id + '-wrap' ); |
|
1677 |
|
1678 if ( ( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) && ! init.wp_skip_init ) { |
|
1679 tinymce.init( init ); |
|
1680 |
|
1681 if ( ! window.wpActiveEditor ) { |
|
1682 window.wpActiveEditor = id; |
|
1683 } |
|
1684 } |
1707 } |
1685 } |
1708 } |
1686 } |
1709 } |
1687 |
1710 |
1688 if ( typeof quicktags !== 'undefined' ) { |
1711 if ( typeof quicktags !== 'undefined' ) { |