- Introduction
- What's New?
- Features
- Upgrading the Design Editor
- Breaking Changes in 6.0
- Getting Started
- Integration with E-commerce
- Integration with Remote Asset Sources
- Printable Files and Proof Images
- Configuring Products
- Creating Product Templates
- User Interface
- Configuration Files
- APIs
- Add-ons
- System Requirements
- Troubleshooting
- Migrating Your Applications
- Licensing
- Copyright Notices
You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.
loadEditor Function
Applies to: Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · Archived documentation
Callable
-
Loads the web-to-print editor.
Parameters
-
editorFrame: HTMLIFrameElement
The iframe element to place the editor to.
-
product: string | string [] | IProductDefinition
The product to load into the editor. You can configure the product through an IProductDefinition instance or construct it from one or more states. For the latter option you need to pass an array of strings (or a single string) that contains product stateIds previously returned by the Editor.finishProductDesign or Editor.saveProduct methods.
-
Optional config: IConfiguration
Editor configuration.
-
Optional onFirstLoad: function
Outdated. A function that handles the first product launch. For details, see The Product Loading Screen topic.
-
-
Returns void
-
-
Returns Promise < Editor >
An instance of the web-to-print editor.
-