Estoy usando Laravel 5.8 y TinyMCE y he agregado un iframe a este editor y hago una nueva publicación con él.
Luego, en Blade, intenté recuperar datos como este:
<!-- News Content --> <div class="text-justify mt-3"> {!! $new->nws_description !!} </div>Y muestra correctamente el contenido pero el único problema es que el iframe es pequeño.
Entonces, necesito aumentar el ancho y la altura del iframe, ¡pero no sé cómo hacerlo!
Aquí está el contenido de $new->nws_description que se almacena en la base de datos:
<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;"> </p> <div id="4591871988"></div> <div id="92356425254"></div>Entonces, ¿cómo aumentar el tamaño del iframe automáticamente? Entonces sería así:
<iframe width="100%" height="100%" ...
puedes hacerlo con estilo, solo apunta al elemento
<style> .h_iframe-aparat_embed_frame iframe{ width: 100% !important; height: 100% !important; } </style>