Help Center
  • Welcome
  • Setka Editor
    • Getting started
    • Drag-and-Drop & Multiselect
    • Text editing
    • Grids and Layout
    • Images
      • Image Editor
    • Background images
    • Icons
    • Animations
    • Lists
    • Tables
    • Dividers
    • Footnotes
    • Hotspots
    • Enhance Symbols
    • Post templates
    • Buttons
    • Comments and collaboration
    • Embeds
    • Hyphenation
    • Responsive layout for mobile screens
    • Custom CSS
    • Custom JS plugins
  • Setka Content Design System Manager
    • Creating and editing styles
    • Text formats and fonts
    • Styles display for mobile mevices
    • Text and background colors
    • Dividers
    • Icons
    • Components – reusable design elements
      • Creating Components with HTML and CSS
        • CSS in components
        • Component examples
    • Configuring layout grids
    • Editing default elements with Custom CSS
    • Adding team members
  • Account Settings
    • Account settings basics
    • Access rights
    • Billing and subscription
  • Preserve your Setka Editor content after the service shutdown
  • Integrations
    • Setka and WordPress
      • Installing Setka Editor WordPress plugin
      • Launching Setka Editor on the post creation page
      • Setka Editor and WordPress compatibility
      • Setka Editor compatibility with the most popular WordPress plugins
      • Inserting graphs, charts, or diagrams into a post
      • Setka Editor and Google AMP
      • Inserting adverts into a post
      • srcset — the attribute for image size optimization
      • Page load speed optimization settings
        • Autoptimize plugin configuration
      • WordPress troubleshooting: known Issues and how to fix them
      • Preserve your Setka Editor content after the service shutdown
    • Setka and Drupal
      • Setka for Drupal — compatibility, and features
      • Installing Setka modules for Drupal
      • Setka content on AMP pages in Drupal
    • Setka and Magento
      • Installing Magento 2 extension
        • Setka Editor configuration page
      • Preserve your Setka Editor content after the service shutdown
    • Setka and HubSpot
      • Setka Editor and HubSpot Blogs
      • Setka Editor and HubSpot Landing Pages
      • Semi-gated content with a HubSpot form
      • Preserve your Setka Editor content after the service shutdown
    • Setka and Bitrix
      • Preserve your Setka Editor content after the service shutdown
    • Setka and Ghost
      • Copying and pasting posts from Setka to Ghost
    • Setka and SharePoint Online
      • Installing Setka Editor application into SharePoint Online
    • Setka and Zapier
      • Setka and Webflow
        • Exporting new posts
        • Updating exported posts
      • Setka and Shopify
    • Setka and Integromat
    • Content Cloud
  • API
    • Setka Content Cloud API
    • Webhooks
    • API for Custom CMS Integration
      • Introduction to custom integration
      • Integration with Content Design System Manager (CDSM)
        • Initial sync — receiving Setka Editor files to connect them to your CMS
        • Storing and processing Setka Editor files
        • Connecting Setka Editor files to the pages of your site
        • Receiving style updates from the Style Manager and new editor versions
      • Setka Post Editor initialization (JavaScript)
      • Integration with Style Manager (API v1, previous version)
      • Preserve your Setka Editor content after the service shutdown
    • Custom Components API
  • VIDEO TUTORIALS
    • Setka Editor Video Tutorials
  • Components Library
    • Components Library
    • Guide: Ideas for Using Setka Editor’s Components to Improve Content Design
  • Content Experience Design Best Practices
    • Guide To Designing a Great Content Experience
Powered by GitBook
On this page
  • Inserting embeds
  • As a link
  • As an HTML code
  • Quick add
  • Making Embeds Responsive
  • Some useful embeds
  • Code snippets
  • Custom forms
  • Marketo forms
  • Known issues
  • Facebook embeds on mobile
  • Videos on mobile
  • Instagram embeds

Was this helpful?

  1. Setka Editor

Embeds

How to embed some elements from external sites into your content (videos, Twitter quotes, Instagram photos, etc.)

PreviousComments and collaborationNextHyphenation

Last updated 2 years ago

Was this helpful?

Inserting embeds

To add an embed, click Add embed on the Side Toolbar.

The code form will appear in the post. You can paste either HTML code or a link there.

To see how this embed will look in the post, click Render on the Upper Toolbar. To get back to editing, click Edit in the top right corner of the embed.

Please watch this short video to learn all about embeds in Setka Editor:

As a link

Copy the link you want to use in the embed (YouTube video, Instagram post, or another external resource). Add an embed to a post via the Add embed button on the Side Toolbar. Paste the copied link into the corresponding text field.

The embed will automatically render and occupy the post's entire width or the column allocated to it.

List of supported services:

As an HTML code

Copy embed HTML code from an external site. Add an embed via the Add embed button in the right-hand panel. Paste the copied code into the corresponding text field.

This code may contain attributes, such as width, height, opacity, etc. You can change parameters at your discretion.

Inserting embeds via HTML codes is not available in the free version of Setka Editor.

Quick add

Making Embeds Responsive

By default, most embeds automatically adapt to the area allocated to them: post or column width. Sometimes you may need to display an embed in its original size, with no stretch or squeeze. To disable Setka Editor's adaptivity algorithms:

1. Switch to the Embed tab on the Upper Toolbar

2. Open the additional settings menu (▼ button).

3. Select off in the Responsive embed dropdown:

4. The embed will take the dimensions set in its code.

Some useful embeds

Code snippets

There are several ways to add a code block to your post:

Code highlighting services

  1. Select highlight options in the Options -> Language -> Select one menu or leave as auto (Autodetect).

  2. Click Highlight.

  3. Paste the highlighted code into an embed in the Setka Editor.

CodePen embeds

  1. Click Start Coding to create a new Pen.

  2. To save changes, click the Save button in the bottom right corner.

  3. Click Embed in the bottom right corner and copy the code.

  4. Paste the code into an embed in the Setka Editor.

Highlighting syntax with highlight.js

3. Place the code from below into of your site's page:

<link rel="stylesheet" href="/path/to/styles/default.css">
<script src="/path/to/highlight.min.js">script>
<script>hljs.initHighlightingOnLoad();script>
<pre><code class="html">...</code></pre>

Custom forms

To add a form with a tag in the code, modify the embed code, and paste it in this format:

<div id="%%unique_form_placeholder_name%%"></div>
<script>
  var uniqueFormHtml = '%%FORM CODE%%';
  var uniquePlaceholderEl = document.getElementById('%%unique_form_placeholder_name%%');
  if (uniquePlaceholderEl) uniquePlaceholderEl.innerHTML = uniqueFormHtml;
</script>

Replace %%unique_form_placeholder_name%%in the template into this form's unique ID.

%%FORM CODE%%is the whole form code in one row. E.g. transform

<form action="/subscribe">
 <input type="text">
 <button type="submit">Subscribe</button>
</form>

into:

<form action="/subscribe"><input type="text"><button type="submit">Subscribe</button></form>

Marketo forms

The initial code will follow this template:

<script src="//app-xyz.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_123"></form>
<script>
MktoForms2.loadForm("//app-xyz.marketo.com", "718-GIV-198", 123);
</script>

To make it work with Setka posts, specify protocols for links (HTTP or HTTPS) in the strict form:

<!-- Add 'https:' to the beginning of the script source link -->
<script src="https://app-xyz.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_123"></form>
<script>
// Add 'https:' to the beginning of the form source link:
MktoForms2.loadForm("https://app-xyz.marketo.com", "718-GIV-198", 123);
</script>

The modified embed code can be then placed in the post.

Known issues

Facebook embeds on mobile

Embeds of some services may be displayed incorrectly. This is due to the fact that an independent document with predefined attribute values is placed inside the container.

Videos on mobile

Videos with Responsive embed turned off would not adapt to screen width on mobile. To allow shrinking or stretching to width, turn Embed > Responsive embed to on.

Instagram embeds

1. Insert Instagram embed via HTML code. Inserting it as a link would not work in this method.

2. Add another embed with this HTML code anywhere in the post:

<style>iframe.instagram-media { position: relative !important; }</style>

This code will fix the proportions of all Instagram embeds in the post. You need to add it once. Despite the fact that the embed is visible in the editor, the reader will not see it in the final version of the post.

Important note: make sure the bottom indent is disabled for the above embed.

If you need to add an embed above or below the , the Quick add menu can be used. To open it, hover the mouse above the grid and click the + button. The purple line above or below the grid will demonstrate where the embed would be placed. If the nested grid is selected, the embed can also be placed above or below the outer grid:

E.g. :

Select the tool and paste the code into the Unhighlighted code field.

Register on .

1. Download the library from the . Place the file on your server.

2. Open the and follow instructions from the Getting started section.

Note that /path/to/styles/default.css and /path/to/highlight.min.js must be valid paths to a file downloaded in p. 1. If you will have any issues with placing the file via CMS, replace the paths to .

4. Place the code block that you want to highlight, into an embed. Before that, you need to escape the characters of the code itself. E.g., via . Make sure that your code is wrapped into corresponding tags:

Marketo can generate embed codes for forms located on your account. Please follow the to get the initial embed code. The code should be modified to fit the Setka standards.

If Responsive embed is to on, its' content is cut at one side, to keep proportions. When stretching the embed to the width of the screen, check how the content of the mobile version will look, using the preview button on the right-hand panel.

Sometimes Instagram provides embed codes with irregular proportions and an overly large block of comments. It happens when inserting embeds via either or an . To return the block to the proper proportions:

For Setka Editor WordPress plugin
For Setka Design Cloud and other integrations
grid
PineTools
Syntax highlighter
CodePen
project site
highlight.js guide
direct links on public CDNs
HTML Entities Encoder / Decoder
platform documentation
set
a link
HTML code
Video tutorial on how to add a video embed in Setka Editor
Video tutorial on how to add and edit embeds in Setka Editor
Adding an embed via Quick add menu
Screenshot of of Responsive embed option turned off to disable embed adaptivity in Setka Editor