While using richtextedior
I would like to insert youtube.
Of course, the current function has 'insert media' function, but it's a bit inconvenient.
1. I have to press the icon and put the path to youtube.
2. youtube provides 2 different codes, iframe and address, and users can't distinguish them well.
So I am looking for the following methods
1. in the rich text editor, if you enter http://www.youtube.com/xxxxxxx in the body, it will automatically recognize it
it will automatically recognize it
2. when the user presses the submit button, I want this youtube video to appear in the body.
3. this youtube video size should be linked to the ratio size of the rich text editor window.
Is there any way to do this?