Search Keyword:

10Aug

Configuring TinyMCE to allow embed tags

Posted by admin as PHP

This post is on how to configure TinyMCE to allow embed tags which TinyMce
is stripping when the user press the Update button in the HTML editor.

When you are embedding Youtube videos,you’ll just have to get the embed code in the video page and just paste it in the editor.The editor(by default) strips out the embed tags in the embed code leaving only the object code and some params.The code that is stripped out will still play in Mozilla Firefox and Google Chrome but doesn’t play or doesn’t even show up in Internet Explorer.IE needs the embed tag for it to play.Here’s how the configuration for it to allow embed tags:

In your TinyMCE init, include the media plugin and set the media_script to false.

tinyMCE.init({ 

   //your other options here

   plugins: "media", //you can include other plugins that you will need here

   // allow embed tags
   media_strict: false 

});

That’s it.You can read more about TinyMCE’s media_script configuration by clicking here.

  • Digg
  • del.icio.us
  • Tumblr
  • StumbleUpon
  • Technorati
  • Reddit
  • NewsVine
  • Slashdot
  • DZone
  • Facebook
  • Twitter

1 Response to Configuring TinyMCE to allow embed tags

בניית אתרים

April 12th, 2011 at 3:37 pm

how can i put custom tags in order to send emails personaly by name

Comment Form

Sponsored Links



Recent Comments

  • anup: thanx it helped me alot…
  • admin: try to look at window.location function of Javascript and place it under the success function of the AJAX...
  • ana: it works for me, but after success, how can i forward the url to a certain page? thanks
  • admin: Hello Don, do these steps again and again until the PSP reboots. Restore your PSP’s Default settings in SYstem...
  • don sb: my psp was already hacked then i changed the screen cos it broke,so at one point the battery lost total...