You need to sign in to do that
Don't have an account?
ckEditor plugin youtube
Hi!!
I am using the ckEditor (http://ckeditor.com/) to insert html code in a rich text and work perfectly. Now I want to insert a video, for this, I have downloaded the youtube plugin for ckeditor. If I add a video, in the HTML code in ckEditor I can see '<p><iframe height="360" src="//www.youtube.com/embed/IcrbM1l_BoI" width="640"></iframe></p>.
The problem is when I saved, the iframe disappear and in the rich text only save<p></p> instead of <p><iframe height="360" src="//www.youtube.com/embed/IcrbM1l_BoI" width="640"></iframe></p>.
This only happen with the tag <iframe>, this editor work good with other tags like '<span>', 'style', etc.
Anybody knows the solution for this?
Hi Tixo,
Check this out, should help: https://github.com/frozeman/MediaEmbed/
Regards,
Ashish
All Answers
Hi Tixo,
Use <apex:iframe> for embedding.
<apex:iframe width="420" height="315" src="http://www.youtube.com/embed/2wTE3k0GqTg"/>
For youTube use their embedd URL instead of buffering URL.
Regards,
Ashish
Hi Ashish_SFDC!
Thanks!, but I want to add the video using ckEditor,because I only need to store the code, I dont need to watch the video in salesforce.
Hi Tixo,
Check this out, should help: https://github.com/frozeman/MediaEmbed/
Regards,
Ashish