Changes are only persisted when you select Save; this will save all changes and then exit the fragment editor. It is possible to remain in the fragment editor, making a series of changes, before selecting Save.

Both Save and Cancel will exit the editor - see Save, Cancel and Versions for full information on how both options operate for content fragments.

Save, Cancel and Versions

The editor has two options:

Save

Will save the latest changes and exit the editor.

Note:

It is possible to remain in the editor, making a series of changes, before selecting Save.

Caution:

In addition to simply saving your changes, Save also updates any references and ensures that the dispatcher is flushed as required. These changes can take time to process. Due to this, there can be a performance impact on a large/complex/heavily-loaded system.

Please bear this in mind when using Save and then quickly re-entering the fragment editor to make and save further changes.

Cancel

Will exit the editor without saving the latest changes.

While editing your content fragment AEM automatically creates versions to ensure that prior content can be restored if you Cancel your changes:

When a content fragment is opened for editing AEM checks for the existence of the cookie-based token that indicates whether an editing session exists:

If the token is found, the fragment is considered to be part of the existing editing session.

If the token is not available and the user starts editing content, a version is created and a token for this new editing session is sent to the client, where it is saved in a cookie.

While there is an active editing session, the content being edited is automatically saved every 600 seconds (default).

Note:

The auto save interval is configurable using the /conf mechanism.

Default value, see:

/libs/settings/dam/cfm/jcr:content/autoSaveInterval

If the user selects to Cancel the edit, the version created at the start of the editing session is restored and the token is removed to end the editing session.

If the user selects to Save the edits, the updated elements/variations are persisted and the token is removed to end the editing session.

Selecting the Mode

From the mode selector in the toolbar (far left of side panel) you can select: