---
title: "Events Class"
canonical: https://customerscanvas.com/docs/cc4/customerscanvas.iframeapi.postmessage.events.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["4.4.25", "4.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 4.4.25, 4.x (may differ) · **Archived documentation**
 
The web-to-print editor events. To subscribe to an event use the [Editor.subscribe](https://customerscanvas.com/docs/cc4/customerscanvas.iframeapi.editor.subscribe.htm.md) method.
  
 - example
     - The following snippet subscribes to the BoundsNotification event and outputs the event arguments to the console:
 
```
var editor = null;
CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition)
    .then(function(e) {
        editor = e;
        editor.subscribe(CustomersCanvas.IframeApi.PostMessage.Events.BoundsNotification, 
            function(args) 
            { 
                console.log("BoundsNotification fired."); 
                console.log(JSON.stringify(args, null, 4)); 
            })
    });
```
 
## 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/cc4/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 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

Fires when a dialog box opens.
 
### Static RevertProduct
 
RevertProduct: string

Fires when a user reverts a product in the editor.
