MDL-29624 Media embedding system, part 2: preview in file picker

The JavaScript file picker API shows a preview of the media file you have chosen.
This preview facility now uses an iframe, in order not to duplicate the embed code
in JavaScript. The iframe uses the standard embed API.
This commit is contained in:
sam marshall 2011-12-13 17:19:03 +00:00
parent daefd6eb97
commit f4e7ba5ea8
3 changed files with 60 additions and 53 deletions

View file

@ -773,6 +773,11 @@ body.tag .managelink {padding: 5px;}
.mediaplugin_mp3 object {height:15px;width:300px}
audio.mediaplugin_html5audio {width: 300px}
/* TinyMCE moodle media preview frame should not have padding */
.core_media_preview.pagelayout-embedded #content {padding:0;}
.core_media_preview.pagelayout-embedded #maincontent {height:0;}
.core_media_preview.pagelayout-embedded .mediaplugin {margin:0;}
/*
Fix for SubScript & SuperScript
------------------------------*/