question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remove iframe width & height

See original GitHub issue
plugins: 'media',
valid_elements : 'span,iframe[!src|width|height|frameborder:0|allowfullscreen]',

when insert youtube iframe, width and height removed, if remove “span” from valid_elements , all ok http://codepen.io/anon/pen/kXJEkQ

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DrDeath72commented, Jul 27, 2016

span[*] looks like fix problem but not secure…

0reactions
aka-wintermutecommented, Dec 30, 2021

It seems span[*] can be made more specific span[contenteditable:false|data-mce-object|class|data-mce-p-frameborder|data-mce-p-frameborder|data-mce-p-allowfullscreen|data-mce-p-src] https://codepen.io/jimmyhchan/pen/rNVKPJe and extended_valid_elements may allow one to limit this to the instance that need it.

When using valid_classes, you must also add 'span': 'mce-preview-object mce-object-iframe mce-shim' to the list

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make iframe automatically adjust height according to the ...
This question already has answers here: Adjust width and height of iframe ...
Read more >
Height adjustment on iFrame - Remove scrolling. - Jotform
Height adjustment on iFrame - Remove scrolling. · The first method is to modify the style of the current iFrame: · style=" ·...
Read more >
Remove iFrame Border and Change Size - Caspio Online Help
When using iFrame deployment you may want to change the default height and width and remove the iFrame border. Remove iFrame border. To...
Read more >
How to adjust the width and height of iframe to fit with content ...
Another way set the height and width of the iframe to fit with content is to use resize property of CSS, this method...
Read more >
removing height and width from iframe embed code
I'm attempting to embed some iframe code that doesn't have any height or width info associated with it which is the way I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found