Embed Mockup Editor
Last updated
Was this helpful?
Last updated
Was this helpful?
You don't need to implement our API to add a great editor feature to your application.
For a quick solution, try using our editor iFrame.
You can easily embed it with just a few lines of JavaScript code.
Embed the iFrame in your app at the location where you want to display the editor:
To power the embedded editor, you'll need to include the necessary JavaScript code from the following CDN:
Lastly, use the initDynamicMockupsIframe function from the SDK with the following script:
Embed the iFrame in your app at the location where you want to display the editor.:
Install package via npm registry:
Include package in your project and init iFrame:
You'll notice the x-website-key
field, you can generate it for free via our APP.
Our Mockup Editor SDK lets you configure the iFrame and control its behavior within your application by providing data to the initDynamicMockupsIframe function. For complete configuration details, visit the Editor Configuration page.
By default, when you embed the mockup editor, the whole catalog will show up. You can also open a specific mockup directly.
To achieve that, modify the src
attribute to open a specific mockup by providing the mockup uuid
.
You can access the mockup uuid
from the Get Mockups API or in the URL of our web application editor.