This JS is from a Quill HTML Editor. I am trying to change the size of the Youtube video. I don’t see any CSS that controls that. It’s rather small and would like to increase the size.
Here’s also a link that I posted with the code thinking that perhaps it was an CSS issue. Since very little to no responses, I though it was maybe a JS issues instead; hence posting here:
I found this information on resizing which adds handles to control the size. I was unable to get it to work. It looks like its a combination of adding some JS and CSS.
If you refresh yourself on my post of 3 years ago, I also post the html to the database. Therefore the ultimate question would be is any code needed on the view page coming from the database or does the code stored in the database handle the resize.
I have always considered Rich Text Format to be a strange name. At the time that Microsoft created RTF, IBM had a RFT format. I do not know if that is more than coincidence. Document Content Architecture - Wikiwand provides a relevant description and is consistent with what I remember back then.
The important thing is that probably Quill should be called a HTML editor, not a rich text editor and if you try to understand what Quill is doing assuming it is doing RTF then you could get incorrect information.
I had a look at that link you posted and it seems that in its default state, Quill embeds videos in an iframe, to which it adds a class of ql-video. You can check this by embedding a video in the editor, then inspecting the page using your browser’s console.
As you say, the embeds are originally quite tiny, but by targeting that iframe, it is quite possible to alter the video size with some simple CSS. For example:
.ql-video {
width: 800px;
height: 450px;
}
Can you try that out and let me know if by adding that CSS to your regular stylesheet you can alter the embed size at all.
Your are a brilliant guy! This completely works! And when I do my searches, I couldn’t find one thing like that which is so simple and makes sense to me. I just didn’t know how to do that and I thank you so much for looking at it and solving the issues.
Thank you so much again. You are truly appreciated!