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

I guess I'd call myself a problem solver. Either that, or I'm some sort of organic machine designed to convert oxygen into carbon dioxide. You could go either way on that. I'm into languages and stuff. I wrote a book. It's okay, I guess. What else? I like reading, swimming, eating, and playing music. Satisfied? Sheesh.

Leave a Comment

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

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

Did you press OK?

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