IFrame API Reference

To use the Customer's Canvas IFrame API, you should link the IframeApi.js script located in ~/Resources/SPEditor/Scripts/IFrame/. In addition, you need to specify a URL leading to Customer's Canvas instance - either by adding id="CcIframeApiScript" to the script tag or using the IframeApi.editorUrl property. Here is the simplest way to enable IFrame API on your page:

<head>
    <meta charset="utf-8" />
    <!-- The IFrame API script. IMPORTANT! Do not remove or change the id. -->
    <script id="CcIframeApiScript" type="text/javascript" src="http://example.com/Resources/SPEditor/Scripts/IFrame/IframeApi.js">
    </script>
</head>
See the Introduction Into IFrame API topic for details.

Modules

Name Description
IframeApi

The API module. It provides data and methods for a product handling.