Drupal TinyMCE media plugin
UPDATE: As a holiday present, I've attached a working tarball of my entire TinyMCE setup below which took me a few months of trial-and-error to perfect. It's powered by TinyMCE 3.1.0.1 and has this media plugin along with many other goodies installed and WORKING flawlessly with ZERO glitches. FF3 is your best bet for non-erratic behavior and proper execution of TinyMCE's JS code. Simply place the tinymce folder under ../sites/all/modules/ and follow TinyMCE module's regular instructions to install. Cheers! (2008-12-17 06:04:51)
Embedding online videos in a blog entry via Drupal may be a bit tricky, especially when the pre-bundled "media" plug-in is not enabled in the original plugin_reg.php file of the TinyMCE module.
At least that was the case for me. So I'm writing this entry to remind myself how I configured the plugin on Drupal's TinyMCE editor. At the time of this post, I am using TinyMCE 6.x-1.x-dev module and TinyMCE 3.1.0.1 on Drupal 6.3.
At first, I didn't know TinyMCE came prebundled with a media plugin so I was searching all over the web for a solution. Then I came across this video link on Technorati that explains how to use the media button. My excitement immediately ended when I realize that the video never explains how the button got there in the first place!
So with more head scratching and trial-and-error, I got it working by inserting this code in the plugin_reg.php (located in the ./modules/tinymce directory).
With the media plugin installed, there's absolutely no need for any other video embed plugin such as the YouTube button which for some reason the TinyMCE Drupal project page advertises instead of the native media plugin!
Here's a demo of the plugin's interface on TinyMCE:
This work is licensed under a Attribution Share Alike Creative Commons license










Great post! The link from http://drupal.org/node/295871 is broken. It should be updated to link to this post.
But great!
Should probably submit this as a patch to the TinyMCE module.
Post new comment