Make WordPress Core

Changeset 27534


Ignore:
Timestamp:
03/14/2014 12:33:24 PM (10 years ago)
Author:
wonderboymusic
Message:

Load MediaElement's CSS when TinyMCE is loaded via $mce_css in editor_settings(). Add some baseline styles in wp-content.css for audio, video, and embed tags to ensure their max-width is 100%, regardless of whether MEjs is implemented in TinyMCE.

See #27389.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r27532 r27534  
    344344                $version = 'ver=' . $GLOBALS['wp_version'];
    345345                $dashicons = includes_url( "css/dashicons$suffix.css?$version" );
    346 
     346                $mediaelement = includes_url( "js/mediaelement/mediaelementplayer.min.css?$version" );
     347                $wpmediaelement = includes_url( "js/mediaelement/wp-mediaelement.css?$version" );
     348               
    347349                // WordPress default stylesheet and dashicons
    348                 $mce_css = array( $dashicons, self::$baseurl . '/skins/wordpress/wp-content.css' );
     350                $mce_css = array(
     351                    $dashicons,
     352                    $mediaelement,
     353                    $wpmediaelement,
     354                    self::$baseurl . '/skins/wordpress/wp-content.css'
     355                );
    349356
    350357                // load editor_style.css if the current theme supports it
  • trunk/src/wp-includes/js/mediaelement/wp-mediaelement.css

    r27489 r27534  
    11.mejs-container, .mejs-embed, .mejs-embed body {
    2     background: #464646;
     2    background: #000;
    33}
    44
  • trunk/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css

    r27530 r27534  
    204204}
    205205
     206audio,
     207video,
     208embed {
     209    display: -moz-inline-stack;
     210    display: inline-block;
     211    max-width: 100%;
     212}
    206213
    207214/**
Note: See TracChangeset for help on using the changeset viewer.