2021.1

Table Of Contents
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894.
Tip
To export a snippet from your template, drag or copy/paste it out of the Snippets folder to
a folder on the local hard drive.
Creating a snippet
To turn a part of a letter, email or web page into a snippet for reuse in the content of a template:
1. Open the section and select the part or parts that should be saved to a snippet.
2. Right-click the selection, point to Snippet and click Create to copy the selected part to a
new snippet, or Create Shared Content to create the new snippet and replace the
selected part with a reference to the new snippet.
3. Give the snippet a name.
Editing a snippet
To edit a snippet, open the snippet file by double-clicking it on the Resources pane.
By default, a 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.
Page 735