Custom Search

You are hereBlog / Drupal TinyMCE media plugin

Drupal TinyMCE media plugin


Posted on December 17, 2008 by Denis

Printer-friendly versionSend to friend

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:

Anonymous's picture

Great work, keep it up. I love returning back to this site and reading the quality content you always have on offer.downloading moviesplay roulettepoker reviews

Denis writes:

I'd suggest you check out the WYSIWYG Drupal module as it has TinyMCE compatibility and the project is very active, unlike TinyMCE module. Perhaps I'll create a post on how to configure TinyMCE on WYSIWYG later but it doesn't take rocket science to figure it out.

Anonymous's picture

Thanks for your help as my next project is going to be with Drupal and TinyMCE module

Lester

Anonymous's picture

Its amazing to me when I run into a great looking site like this one here, but then for you to share this amazing work that you have taken a while to bring together, well, that’s wonderful. Just like my job working with my email marketing list is wonderful!

Anonymous's picture

Really helpful!
Thanks a lot

Anonymous's picture

Thanks for the nice post, quite inforamitve .Love to read this article.

Anonymous's picture

Thanks for the plugin! Demo very easy to understand

Denis writes:
Thanks Fredric for pointing this out. That was an old link to this node created before I made a bunch of updates on this site. I made a note of the new link in the Drupal thread.
Anonymous's picture

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.

recent comments

Anonymous's picture

Hi ,

I must say thanks for sharing your blogs and articles ,they all are very useful for me.

thanks metrogyl
http://supernsetips.com

Anonymous's picture

SHAAAZAAAMMMM!!!! This is a great and valuable post for all marketer's, love the way you brought your ideas about W. H. S. (2008). Keep it up. . My friend Jani has created a "little known" secret from siphoning traffic from facebook, none of the GURU's are teaching and it's working AWESOME! speak soon Julie 'FB Pro' Jameson

Anonymous's picture

Hello! akdceee interesting akdceee site!

Foxkeh

View Denis Lam's profile on LinkedIn