ElementorexCms.Blocks.Video (ElementorexCms v0.1.0)

Copy Markdown View Source

A YouTube or Vimeo video (embedded with its canonical player URL) or a video file (.mp4, .webm).

Embeds need the host's Content-Security-Policy to allow the players in frame-src (https://www.youtube-nocookie.com https://player.vimeo.com). On the editor canvas the player is replaced by a preview, so the editor works under a strict policy.

Summary

Functions

Palette and editor metadata of the block.

Props of the block, in declaration order.

Callback implementation for ElementorexCms.Block.render/1.

Type stored in documents for this block.

Functions

default_children()

Callback implementation for ElementorexCms.Block.default_children/0.

meta()

Palette and editor metadata of the block.

props()

Props of the block, in declaration order.

render(assigns)

Callback implementation for ElementorexCms.Block.render/1.

type()

Type stored in documents for this block.