Embed Code Plugin For FCKEditor

By , 17 November 2013

Embed Code Plugin For FCKEditor

Here's a plugin I just whipped up for FCKEditor which makes it easy to add embedded HTML code such as YouTube and Vimeo videos.

FCKEditor Embed Plugin Dialog

To install, download the plugin below and unzip it in your plugin folder. Then add the following line to your fck_config.js:

FCKConfig.Plugins.Add('embed');

You will also need to add an 'Embed' entry to your toolbar array in fck_config.js.

Download the FCKEditor Embed Plugin Now.

One problem you should be aware of is that browsers now try to protect users from XSS (Cross-Site Scripting) injection, so if you send iframe tags in the embed code, they might get stripped out. To fix this problem, you need to ensure your server adds the following header:

X-XSS-Protection: 0

 

Embed Code Plugin For FCKEditor

About Roger Keays

Embed Code Plugin For FCKEditor

Roger Keays is an artist, an engineer, and a student of life. He has no fixed address and has left footprints on 40-something different countries around the world. Roger is addicted to surfing. His other interests are music, psychology, languages, the proper use of semicolons, and finding good food.

Leave a Comment

Please visit https://rogerkeays.com/embed-code-plugin-for-fckeditor to add your comments.

Comment posted by: Oliver, 10 years ago

Hi Roger,

may thanks for providing your plugin!

I have the same issue as spencer lee discribed:

Window shows but nothing happens on ok-click.

Browser: Firefox 31 and IE 11

Regards, Oliver

Comment posted by: , 10 years ago

Did you press OK?

Comment posted by: spencer lee, 11 years ago

Hey Roger

I just downloaded your embed plugin for FCK. It throws up the wiondow. I paste the code and it just sits there open. Any fix.

Spencer in sydney