2022.1

Table Of Contents
Adding an HTML snippet to a section
Drag-and-drop
To add an HTML snippet to the content of a section, drag the snippet from the Snippets folder
on the Resources pane to the desired location in a section.
Check the option Insert as shared content to insert a reference to the original snippet in the
template, rather than a copy of the original snippet.
Via a script
In addition to the drag-and-drop method, it is possible, and often useful, to insert a snippet or
part of it, using a script; for remote snippets this is normal practice. See "Loading a snippet via
a script" on page416.
Editing a snippet
To edit a snippet, open the snippet file by double-clicking it on the Resources pane.
Editing shared content
By default, an HTML snippet that is being used as shared content can also be modified in a
section where it is used. That way you actually adjust its source. The snippet will be changed at
all locations where it is used.
The option to modify shared content snippets from within a section can be turned off:
l In the menu, select View > Shared Content Editing to enable or disable editing of all
shared content.
l To enable or disable editing on a case by case basis, you can also manually set the
contenteditable attribute on the Article element of the shared content to true or
false. This overrides the menu setting.
Note
Remote snippets inserted as shared content cannot be changed from within the
Designer. Of course, their source file can be edited outside of the Designer. When that
happens, the changes will become visible in remote snippets that are inserted as shared
content.
Page 285