Embedded objects
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
- Edit the item and put the cursor in the rich text where the embedded item goes.
- Press Embed object in the toolbar (in Tiptap: Insert/edit object, or Insert/edit image for an image).
- 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.
- On the Properties tab, choose how it is shown (below), then press OK.
- Press Send for publishing, and check the result with Preview.
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.
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
- How do I embed another object in a text?, in the help center.
- How do I insert an image in the Online Editor?
- Relations: an embedded item is also recorded as a relation of the item.
- Images and files
Contributors
- Sarah Haïm-Lubczanski
- Graham Brookins Updated Maintainer
Comments
Add a comment