first i have to apologize, my english is not good, that's how google translated it. Maybe that's why I didn't find the answer
With the current JCE I enter the following code in the editor
<p class="responsive-video">
<iframe src="https://www.joomlacontenteditor.net/www.youtube.com/embed/cXiCJUNwIz8" width="640" height="360" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
When I switch from code to editor, it changes the code even when it's saved. red_different
<p class="responsive-video">
<iframe src="https://www.joomlacontenteditor.net/www.youtube.com/embed/cXiCJUNwIz8" width="640" height="360" style="width: 640px; height: 360px;" frameborder="0" allowfullscreen="allowfullscreen" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"></iframe>
</p>
insite template i use this code
.responsive-video {
position:relative;
padding-bottom:56.25%;
padding-top:15px;
height:0;
overflow:hidden;
}
.responsive-video iframe {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
in the TinyMCE editor it works even if I switch the code sector on or off.
I've been using this code for a long time, no problems so far.
Greetings
With the current JCE I enter the following code in the editor
<p class="responsive-video">
<iframe src="https://www.joomlacontenteditor.net/www.youtube.com/embed/cXiCJUNwIz8" width="640" height="360" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
When I switch from code to editor, it changes the code even when it's saved. red_different
<p class="responsive-video">
<iframe src="https://www.joomlacontenteditor.net/www.youtube.com/embed/cXiCJUNwIz8" width="640" height="360" style="width: 640px; height: 360px;" frameborder="0" allowfullscreen="allowfullscreen" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"></iframe>
</p>
insite template i use this code
.responsive-video {
position:relative;
padding-bottom:56.25%;
padding-top:15px;
height:0;
overflow:hidden;
}
.responsive-video iframe {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
in the TinyMCE editor it works even if I switch the code sector on or off.
I've been using this code for a long time, no problems so far.
Greetings