I think, therefore I blog

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:


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. Since he left Australia in 2009, he has been living as a digital nomad in over 40 different countries around the world. Roger is addicted to surfing. His other interests are music, psychology, languages, and finding good food. Click here to subscribe to his weekly blog, or stalk him on Facebook and Twitter.

Leave a Comment

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

Comment posted by: Oliver, 2 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: , 2 years ago

Did you press OK?

Comment posted by: spencer lee, 3 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

Join Over 1000 Subscribers

I write every Sunday about travel, psychology, and technology. Thousands of people just like you have already subscribed—and for good reason. It'll change your life. And it's free :)

Read a Good Book

“A spellbinding true story of love, passion and adventure. One can’t help but be swept away by 100% Love Guaranteed.” —Dr Tammie Matson, author of Elephant Dance.

Chat For A While

Your Vote Matters

Which animal will take over when humans go extinct?