TinyMCE(3.x) YouTube (iFrame, Embed)  plugin

TinyMCE(3.x) YouTube (iFrame, Embed) plugin

Embed Youtube movies easily from TinyMCE editor instances.

  • Language: JavaScript
  • Released: Dec 28, 2011
    Last Update: Apr 10, 2012

The TinyMCE YouTube iFrame plug-in allows you to easily insert YouTube video clips into your rich-text editor area.

Hide

Instalation

Files

Just copy "youtubeIframe" folder to TinyMCE plugins folder (tiny_mce/plugins/) and add "youtubeIframe" plugin and "youtubeIframe" button to your TinyMCE configuration.

JavaScript

<script type="text/javascript">
        tinyMCE.init({
            // General options
            mode : "textareas",
            theme : "advanced",
            language:'en',
            plugins : "youtubeIframe",

            // Theme options
            theme_advanced_buttons1 : "youtubeIframe",
            theme_advanced_buttons2 :"",
            theme_advanced_buttons3 :"",
            theme_advanced_buttons4 :"",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing : true,
            valid_elements: "iframe[src|title|width|height|allowfullscreen|frameborder|class|id],object[classid|width|height|codebase|*],param[name|value|_value|*],embed[type|width|height|src|*]"
        });
    </script>
    <!-- /TinyMCE -->

You can modify your existing instalation only with:

plugins : "youtubeIframe",

theme_advanced_buttons1 : "youtubeIframe",

valid_elements:"iframe[src|title|width|height|allowfullscreen|frameborder|class|id],object[classid|width|height|codebase|*],param[name|value|_value|*],embed[type|width|height|src|*]"
You need to log-in or create an account
  • Create an account
  • Log-in
Please use your real name.
Activation link will be sent to this address.
Minimum 8 characters
Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

X

Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

License » GNU LGPL Download
or Get a quote

for customization or integration services

  • This was a great plugin and did exactly what I wanted. Thank you!
    OW obryan worley
    3 months ago, 0 comments
    Was this helpful?
    Flag
  • vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD vERY GOOD
    TF Thiago Ferraz
    5 months ago, 0 comments
    Was this helpful?
    Flag
  • Great plugin, just one thing missing we can't control of inserted video through design view (no control to delete it). Excellent work :)
    AG Any Gaga
    1 year ago, 0 comments
    Was this helpful?
    Flag
Post a comment

Or enter your name and Email
  • KP Kamlesh Pant 4 months ago
    this plugin is not working for me. it gives me blank instead of textarea
  • N Numberonename 1 year ago
    To make it work without deleting all other formatting add |* to the end of iframe attributes like so: valid_elements:"iframe[src|title|width|height|allowfullscreen|frameborder|class|id|*], object[classid|width|height|codebase|*],param[name|value|_value|*], embed[type|width|height|src|*]"
  • AG Any Gaga 1 year ago
    Is there a way to delete inserted video?
    • P Paula 1 year ago
      Please, I need this answer too!