mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Added support for no-iframed embeds
refs https://github.com/TryGhost/Team/issues/1211 This is to allow us to style the NFT embed card in the Admin
This commit is contained in:
parent
d3cfa14498
commit
8e29e8de79
@ -19,7 +19,11 @@
|
||||
{{#if this.payload.html}}
|
||||
<div class="kg-card-hover">
|
||||
<div class="koenig-embed-{{this.payload.type}} flex justify-center relative" data-kg-embed>
|
||||
<iframe class="bn miw-100" scrolling="no"></iframe>
|
||||
{{#if this.payload.noIframe}}
|
||||
{{{this.payload.html}}}
|
||||
{{else}}
|
||||
<iframe class="bn miw-100" scrolling="no"></iframe>
|
||||
{{/if}}
|
||||
<div class="koenig-card-click-overlay ba b--transparent" data-kg-overlay></div>
|
||||
</div>
|
||||
|
||||
|
@ -188,6 +188,8 @@ export default Component.extend({
|
||||
delete response.html;
|
||||
set(this.payload, 'type', response.type);
|
||||
delete response.type;
|
||||
set(this.payload, 'noIframe', !!response.noIframe);
|
||||
delete response.noIframe;
|
||||
// store all other data returned from oembed such as thumbnails, sizing, etc
|
||||
set(this.payload, 'metadata', response);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user