Compose tips
Text Formats
Full HTML
-
You can align images, videos, blockquotes and so on to the left, right or center. Examples:
- Align an image to the left:
<img src="" data-align="left" />
- Align an image to the center:
<img src="" data-align="center" />
- Align an image to the right:
<img src="" data-align="right" />
- … and you can apply this to other elements as well:
<video src="" data-align="center" />
- Align an image to the left:
-
You can caption images, videos, blockquotes, and so on. Examples:
<img src="" data-caption="This is a caption" />
<video src="" data-caption="The Drupal Dance" />
<blockquote data-caption="Dries Buytaert">Drupal is awesome!</blockquote>
<code data-caption="Hello world in JavaScript.">alert("Hello world!");</code>
-
You can embed media items:
- Choose which media item to embed:
<drupal-media data-entity-uuid="07bf3a2e-1941-4a44-9b02-2d1d7a41ec0e" />
- Optionally also choose a view mode:
data-view-mode="tiny_embed"
, otherwise the default view mode is used. - The
data-entity-type="media"
attribute is required for consistency.
- Choose which media item to embed:
-
You can embed entities. Additional properties can be added to the embed tag like data-caption and data-align if supported. Example:
<drupal-entity data-entity-type="node" data-entity-uuid="07bf3a2e-1941-4a44-9b02-2d1d7a41ec0e" data-view-mode="teaser" />
Plain text
- No HTML tags allowed.