26. editObject

Same as viewObject, except that the helper application is assumed to be an editor instead of a viewer. If this editor is used to modify the object, then the changes are also automatically applied to the document being edited.

Example: let's suppose an element contains an image encoded using base 64 (data type base64Binary).

  1. This command examines the first bytes of the image and, using this signature, determines which helper application to use.

  2. The helper application has been declared using the Preferences dialog box, Helper Applications section and happens to be an image editor.

  3. It reads the image data from the element, decodes it and saves it to a temporary file.

  4. It starts the image editor passing it the file containing the extracted image.

  5. After the user quits the image editor, the command detects that the extracted image has been modified and therefore reloads it in the element.