Code block

A Code block is a raw HTML fragment. Openly exports it as MJML raw HTML so you can drop in markup the visual blocks do not cover.

What is a Code block?

A Code block is a raw HTML fragment. Openly exports it as MJML raw HTML so you can drop in markup the visual blocks do not cover.

Use Code only when a standard block cannot do the job. Client support varies, Health Check may flag it, and compiled HTML will not import the fragment back into a Code block.

How to add

  1. Open the Blocks tab in the left sidebar.
  2. Drag Code into a column on the canvas.
  3. Click the block to edit its content and properties.
Blocks palette in the left sidebar
The Blocks tab lists Section plus every content block. Drag a tile into a column.

Properties

Select the Code block, then open the Properties tab on the right. These controls change how this block looks and behaves.

PropertyOptionsUsed for
HTMLA fragment with no scripts; exports as MJML mj-rawCustom markup the visual blocks cannot do
Wrapper paddingpx around the fragmentSpace around the raw HTML
BorderOptional outline on the wrapperA box around the custom markup
HideOff, mobile, or desktopKeep the fragment off one breakpoint

Client support for raw HTML varies. Health Check may flag limited compatibility. Code blocks are not re-imported from compiled HTML.

Related

Still need help?

Contact Support and we will get back to you.

Email support@openly.email

Feedback or suggestions?

Report a bug or share an idea.