-
Notifications
You must be signed in to change notification settings - Fork 1
Iframe
Iframes can be added to a project using either the iframe
or iframe-inline
directives.
The b-ber iframe
element must be declared with an id
and source
attribute. The source
attribute should be the URL of the remote resource. The iframe can also include a poster
attribute which points to an image in the _project/_images
directory.
::: iframe:my-id source:https://example.com poster:my-placeholder.jpg
The iframe-inline
directive, when rendered into XHTML, will add the iframe directly into the flow of the project.
::: iframe-inline:my-id source:https://example.com
The iframe
directive supports all of the same attributes as the HTML Iframe element.
Note: Using the src
attribute will conflict with b-ber's file management. Do not use that attribute.
The iframe
directive also supports an optional caption. Captions are added by enclosing a line of text within two colons directly underneath the iframe.
::: iframe:my-id source:https://example.com
:: Here is the *caption* for my iframe.<br/>Inline HTML is also supported here.
::
Adding iframes in Epubs is not allowed according to the Epub spec. Durin the Epub build, b-ber will replace the iframe element with placeholder text.
- Adding metadata
- Creating content
- Generating new content
- Authoring and editing content
- Reading order (Table of Contents)
- Configuring the build
- Adding a cover image
- All directives
- Text
- Media
- Misc