mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Revert "Added support for no-iframed embeds"
This reverts commit 8e29e8de79
.
This commit is contained in:
parent
dad82ec463
commit
b8dd7c6af2
@ -22,11 +22,7 @@
|
|||||||
{{#if this.payload.html}}
|
{{#if this.payload.html}}
|
||||||
<div class="kg-card-hover">
|
<div class="kg-card-hover">
|
||||||
<div class="koenig-embed-{{this.payload.type}} flex justify-center relative" data-kg-embed>
|
<div class="koenig-embed-{{this.payload.type}} flex justify-center relative" data-kg-embed>
|
||||||
{{#if this.payload.noIframe}}
|
|
||||||
{{{this.payload.html}}}
|
|
||||||
{{else}}
|
|
||||||
<iframe class="bn miw-100" scrolling="no"></iframe>
|
<iframe class="bn miw-100" scrolling="no"></iframe>
|
||||||
{{/if}}
|
|
||||||
<div class="koenig-card-click-overlay ba b--transparent" data-kg-overlay></div>
|
<div class="koenig-card-click-overlay ba b--transparent" data-kg-overlay></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -188,8 +188,6 @@ export default Component.extend({
|
|||||||
delete response.html;
|
delete response.html;
|
||||||
set(this.payload, 'type', response.type);
|
set(this.payload, 'type', response.type);
|
||||||
delete 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
|
// store all other data returned from oembed such as thumbnails, sizing, etc
|
||||||
set(this.payload, 'metadata', response);
|
set(this.payload, 'metadata', response);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user