Embeddable content
You can embed JetBrains Marketplace content onto your website. Currently, the following embeddable content is available:
Plugin Card,
Install to IDE button.
How to
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.
Distribution type
There are two possible embeddable distributions:
iframe
,script
.
We recommend using the script
distribution type because it handles the Content Security Policy
limitations, such as redirecting to JetBrains Marketplace.
Including script
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 type
-card
orinstall
,@param id
- plugin id,@param root
- the root container. Can be a validCSS Query
orHTMLElement
.
Including iframe
In case you can't include the script on the page, you can also add an iframe
. Please, use the code below.
Card
Install button
Limitations of the iframe option
Due to the Content-Security-Policy
, we can't redirect the user to JetBrains Marketplace. This case affects the situation when a user has no IDE available for the installation, and we show the link Get From Marketplace.