- Issue created by @lelikone
- 🇫🇷France abdei Paris, Ile de France
Hello @lelikone ,
i ve pushed a new release that fixes that issue.
pull the latest version 1.0.2Regards,
Abdel - 🇪🇸Spain lelikone
Hello @abdei
Thanks for the update, but I keep getting the same problem. Also discovered one strange behavior. If I insert another site in the link string address, then an iframe is created in which the site is inserted, I need to add a check that it is youtube site and not another site.
Regards, Lelikone
- 🇫🇷France abdei Paris, Ile de France
The "ckeditor5_youtube" module is built to create iframes specifically for YouTube links.
- 🇪🇸Spain lelikone
Here I attach a screenshot, where I just entered the address of any site and the frame was created with any site, no error or information is not issued. version 1.0.2 is installed. - 🇪🇸Spain lelikone
const a = e.match(/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=)?(.+)/);
if (a && a[1]) {
return o(`https://www.youtube.com/embed/${a[1]}`, l())
}
return eThis part of the code works like this, if you inserted a link from youtube, it will return everything ok, but if there is no mention of youtube in the link, it will return the original link.