Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
How to increase width and height of an iframe which is created tinymce editor

I'm using Laravel 5.8 and TinyMCE and I have added an iframe to this editor and make a new post with it.

Then at the Blade, I tried retrieving data like this:

<!-- News Content -->
<div class="text-justify mt-3">
   {!! $new->nws_description !!}
</div>

And it correctly shows the content but the only problem is that the iframe is small size.

So I need to increase the width and height of the iframe but don't know how to do that!

Here is the contents of $new->nws_description which is stored at the DB:

<p style="text-align: justify;">Lorem Ipsum Dolor Sit Amet</p>
<p style="text-align: justify;">Lorem Ipsum Dolor Sit Amet</p>
<p dir="ltr" style="text-align: justify;"><code></code></p>
<div class="h_iframe-aparat_embed_frame" style="text-align: center;"><iframe title="iframe-title" src="iframe-link" allowfullscreen="true"></iframe></div>
<p dir="ltr" style="text-align: justify;"><code></code></p>
<p dir="ltr" style="text-align: justify;">&nbsp;</p>
<div id="4591871988"></div>
<div id="92356425254"></div>

So how to increase the iframe size automatically? So it would be like this:

<iframe width="100%" height="100%" ...

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you can do it with style, just target the element

<style>
.h_iframe-aparat_embed_frame iframe{
    width: 100% !important;
    height: 100% !important;
 }
</style>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!