Last updated 1/10/20221 minute to read

HTML embed

This feature allows embedding HTML snippets so that you can directly interact with HTML Fragments in the content.

Some examples of content that can be embedded thanks to the HTML embed feature:

  • Analytics code (that usually require embedding <script> elements).
  • Social page widgets (that also require embedding <script> elements).
  • Content embeddable by <iframe> elements.
  • HTML media elements such as <audio> and <video>.
  • HTML snippets produced by external tools (for example, reports or charts).
  • Interactive content that requires a combination of rich HTML and scripts.

It is recommended that you use the media embed feature to embed media that are supported by this feature and use the HTML embed to handle the remaining content.

Add HTML snippets

  1. Click the HTML embed button HTML embed on the toolbar.
  2. Type or paste your raw HTML snippet into the provided field.
  3. Click the checkmark to save your changes.

You can see the preview of your topic to see how your HTML fragments look on the viewer.

Edit the HTML source

  1. Click the edit icon (Pencil sign) on the top right of the HTML field.
  2. Edit the HTML source.
  3. Click the checkmark to save your changes. (You can click the X mark if you want to undo the changes)

Here's an example of how an HTML snippet would look on the editor and the viewer: