A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://plugins.jetbrains.com/docs/marketplace/embeddable-content.html below:

Embeddable content | JetBrains Marketplace Documentation

Embeddable content

You can embed JetBrains Marketplace content onto your website. Currently, the following embeddable content is available:

How to
  1. Go to the plugin dashboard embeddable content section.

  2. Choose the distribution type.

  3. Include this content on your website.

  4. 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:

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:

<script src="https://plugins.jetbrains.com/assets/scripts/mp-widget.js"></script>

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:

<script src="https://plugins.jetbrains.com/assets/scripts/mp-widget.js"></script> <script> MarketplaceWidget.setupMarketplaceWidget('install', 8554, "#root"); </script>

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

<iframe frameborder="none" width="384px" height="319px" src="https://plugins.jetbrains.com/embeddable/card/<id>"></iframe>

Install button

<iframe frameborder="none" width="245px" height="48px" src="https://plugins.jetbrains.com/embeddable/install/1347"></iframe>

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.

Last modified: 18 January 2024


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4