---
title: "Events Class"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.postmessage.events.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# Events Class

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
The web-to-print editor events. To subscribe to an event, use the [Editor.subscribe](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.subscribe.htm.md) method.
  
 - example
     - The following snippet subscribes to the BoundsNotification and PrintAreaBoundsChanged events and outputs their arguments to the console:
 
```
var editor = null;
CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition)
    .then((e) => {
        editor = e;
        editor.subscribe(CustomersCanvas.IframeApi.PostMessage.Events.BoundsNotification, (args) => {
                console.log("BoundsNotification fired."); 
                console.log(JSON.stringify(args, null, 4)); 
            });
        editor.subscribe(CustomersCanvas.IframeApi.PostMessage.Events.PrintAreaBoundsChanged, (args) => {
                console.log("PrintAreaBoundsChanged");
                console.log(args);
            });
    });
```
 
## Properties
 
### Static AssetManagerClosed
 
AssetManagerClosed: string

Fires when the Asset Manager closes.
 
### Static AssetManagerOpened
 
AssetManagerOpened: string

Fires when the Asset Manager opens.
 
### Static BoundsNotification
 
BoundsNotification: string

This event allows for [getting product measurements during customization](https://customerscanvas.com/docs/cc6/measuring-layers.htm.md).
 
### Static CanRedoChanged
 
CanRedoChanged: string

Fires when the Redo button gets enabled in the editor.
 
### Static CanUndoChanged
 
CanUndoChanged: string

Fires when the Undo button gets enabled in the editor.
 
### Static FullScreen
 
FullScreen: string

Fires when the editor is switched to the full screen mode.
 
### Static FullWindow
 
FullWindow: string

Fires when the editor is switched to the full window mode.
 
### Static ItemAdded
 
ItemAdded: string

Fires when a design element is added to the product.
 
### Static ItemChanged
 
ItemChanged: string

Fires when the design element is changed in the editor.
 
### Static ItemRemoved
 
ItemRemoved: string

Fires when a design element is removed from the product.
 
### Static ModalClose
 
ModalClose: string

Fires when the editor is closed in a modal window.
 
### Static ModalOpen
 
ModalOpen: string

Fires when the editor is opened in a modal window.
 
### Static OnImageDpiChanged
 
OnImageDpiChanged: string

Fires when a user resizes images.
 
### Static OnSurfaceChanged
 
OnSurfaceChanged: string

Fires when a user switches surfaces.
 
### Static OriginalSize
 
OriginalSize: string

Fires when the editor is switched to the original size mode.
 
### Static PopupOpen
 
PopupOpen: string

*Deprecated. Instead, you can subscribe to UIElementStateChange with the "TextPopup" argument.* Fires when a dialog box opens.
 
### Static PrintAreaBoundsChanged
 
PrintAreaBoundsChanged: string

Fires when when the size of a print area changes, for example, after using [setPrintAreas](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.surface.setprintareas.htm.md).
 
### Static RedoProduct
 
RedoProduct: string

Fires when a user clicks the **Redo** button.
 
### Static RevertProduct
 
RevertProduct: string

Fires when a user reverts a product in the editor.
 
### Static SelectedItemsChanged
 
SelectedItemsChanged: string

Fires when a design element from the collection is changed in the editor.
 
### Static UIElementStateChange
 
UIElementStateChange: [UIElementStateChangeEventArgs](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.postmessage.uielementstatechangeeventargs.htm.md)

Fires when `TextPopup`, `BottomToolbar.Zoom`, or `BottomToolbar.Settings` popups has been opened or closed. Arguments of this event look as follows: `{element: "BottomToolbar.Zoom", isOpen: true}`.
 
### Static UndoProduct
 
UndoProduct: string

Fires when a user clicks the **Undo** button.
