Embed Sanitized HTML Elements
There are a few media components provided by media
media
module.
iframe
iframe
: Embed an iframe in the document.video
video
: Embed a video in the document.audio
audio
: Embed an audio in the document.div
div
: Embed a div in the document.
Example:
Check the Multimedia Components to see the result of the above code.
Explaination:
outer-width
outer-width
andouter-height
outer-height
gives a the size to render at the position. You can either use theshiroa.page-width
shiroa.page-width
orstd.layout
std.layout
to determine a proper size.- The
media
media
components currently doesn't get render in PDF output, so you have to provide the alternative content whenis-pdf-target
is-pdf-target
istrue
true
.