You can embed Marketplace content onto your website. Currently, the following embeddable content is available:
Install to IDE button.
Go to the plugin dashboard embeddable content section.
Choose the distribution type.
Include this content on your website.
If you're not a plugin author and don't have permission to edit the plugin, use the codes in the section below.
There are two possible embeddable distributions:
We recommend using the
script distribution type because it handles the
Content Security Policy limitations, such as redirecting to the Marketplace page.
In order to include the script copy the
script code on the page or use the following snippet:
After including the script on the page, the global variable
MarketplaceWidget should be available on your page. To set up the widget, you need to call the function
setupMarketplaceWidget and provide it with the following arguments:
@param id- plugin id,
@param root- the root container. Can be a valid
In case you can't include the script on the page, you can also add an
iframe. Please, use the code below.
Limitations of the iframe option
Due to the
Content-Security-Policy, we can't redirect the user to the Marketplace page. This case affects the situation when a user has no IDE available for the installation, and we show the link Get From Marketplace.