SDK

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. You can choose between our classic editor, or AI powered MockAnything editor.

Classic Embed Editor
MockAnything Embed Editor

How to embed?

CDN use:

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:

JavaScript framework:

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.

Embed Editor

Open a specific mockup in the Mockup Editor

By default, when you embed the mockup editor, the whole catalog will show up. You can also open a specific mockup directly.

Open a specific mockup in the Mockup Editor

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.

Last updated

Was this helpful?