Skip to the content
Documentation

Embedded objects

No ratings yet

Embedding shows another item inside a text: an image, a file to download, a video, or a box with the teaser of an article. The text does not hold a copy: it points to the item, so when the item changes, every text that embeds it shows the change. This page explains how to embed an item, the choices of the embed dialog, and how the result looks. It replaces the earlier page "Examples for embedded objects".

Embed an item

  1. Edit the item and put the cursor in the rich text where the embedded item goes.
  2. Press Embed object in the toolbar (in Tiptap: Insert/edit object, or Insert/edit image for an image).
  3. Choose the item on one of the tabs:
    • Upload: a new file, From your computer or From a URL, with a name, the location, the alternative text for an image and a description. The new item is created and embedded.
    • Search: find an item by its name.
    • Browse: open folders of the content tree and the media library.
    • Bookmarks: one of your own bookmarks.
  4. On the Properties tab, choose how it is shown (below), then press OK.
  5. Press Send for publishing, and check the result with Preview.
The dialog for embedding an object in TinyMCE 8 with the tabs Upload, Search, Browse and Bookmarks

Embed object: upload a new file, or find an existing item by search, by browsing or in your bookmarks.

The properties of an embedded item

Property What it does
View How the item is shown. Embed shows it as a block (an image, a box with a teaser); Embed-inline shows it as part of the line, often a link with its name. Your site may offer more views.
Size For an image: the size from the site's image sizes, for example small, medium or large. Choose a smaller size rather than uploading a smaller file.
Align Left, center or right. Text flows around an item aligned left or right.
Inline Places the item inside the line of text instead of as a block of its own.
Class and custom attributes A look of its own, and further values, where the site defines them.

What each view, size and class looks like is decided by the design of the site. Two items aligned left and right next to each other, or a large image aligned to one side, may look different on a phone than on a large screen: check with Preview at the phone size.

Change or remove an embedded item

  • Double-click the embedded item, or click embed in the element path below the text, to open its dialog again and change its properties or choose another item.
  • Select it and press Delete to take it out of the text. The item itself stays where it is.

Tiptap offers the same choices in a dialog of its own: search, browse and bookmarks, Upload new file, and the properties below them.

The Insert/edit object dialog of Tiptap with Search, Browse, Bookmarks, Upload new file and the properties size, alignment, view, class and inline

In Tiptap the embed dialog has the same choices: find or upload the item, then choose how it is shown.

Who may do it

Editors who may edit the item and read the item they embed. Uploading a new item also needs the right to create it in the chosen location.

What can go wrong

  • The embedded item disappears on the site. It was hidden, moved to the trash, or is in a section visitors may not read.
  • An item cannot be removed because other content embeds it. Exponential warns before it removes an item that texts still embed. Remove the embeds from those texts first, or keep the item.
  • The upload is refused. The file is too big, or of a type the site does not accept here.
  • The image has no alternative text. Give every embedded image an alternative text, in the upload or on the image item.

Read more

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.