Allow EMBED Code in YUIEditor

user-pic
Vote 0  

Filed:

 
The YUIEditor is really nice. Many thanks to Richard for adapting it for MT. By default it will sanitize code that is needed to embed video from sites such as YouTube. Inside your mt-static/plugins/YUIEditor/config.js file, add these lines:

//Allow EMBED code for video files
delete YUIEditor.invalidHTML.embed;
delete YUIEditor.invalidHTML.object;
delete YUIEditor.invalidHTML.param;

Now it will no longer strip our that code.

Email to a friend

Anonymous comments are always moderated, please sign in and join the discussion. Create an account for a user profile and community features. Please read our comments policy.

Leave a comment

Poll

Do you like the toolbar at the bottom of this blog?

View results

View & Download PDF


View our support community!

About This Blog

Ken Edwards (and hopefully other project members) will be blogging here — a place to keep up on what is happening on the BG Views project. You will find bits of code, project updates, and random technical information aimed at confusing the hell out of you. More »

Subscriptions

Mobile Edition

Mobile EditionAccess the BG Views Developer Blog on your iPhone or other mobile device. Read more about our mobile site »
Powered by Movable Type 4.34-en

 

Also powered by:

  • Caffeine (Dr. Pepper)
  • Cup Cakes (Hostess)
  • Pizza (Pisanello's)