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.
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
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. |