I am using the following configuration:

Drupal 6.2
TinyMCE plugin 6.x-1.1-dev
TinyMCE 3.1.0.1

I want to be able to allow users to embed media files, such as mp3 or references to YouTube clips without having to use HTML (NB I have a separate issue where the 'disable rich-text' doesn't work - so I seem to be stuck every which way, as my users can't switch the editor off and just use HTML! I have reported this here, though maybe I should elevate this to an issue rather than a comment on another issue). However, there is no 'media' option shown in the TinyMCE to enable this functionality. There is however, a 'flash' option, which doesn't do anything - I note from the TinyMCE documentation that they are now deprecating 'flash' in favour of 'media'. See this.

I have examined the tinymce plugins directory and the media plug in present - while flash is missing, which probably explains why it doesn't work.

Any help most welcome!

Comments

gillianH’s picture

Just to add a comment - I have now reported the other issue I referred to separately.

biggena’s picture

You need to edit file plugin_reg.php

Replace following lines:

$plugins['flash'] = array();
$plugins['flash']['theme_advanced_buttons3'] = array('flash');
$plugins['flash']['extended_valid_elements'] = array('img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|obj|param|embed]');

With:

$plugins['media'] = array();
$plugins['media']['theme_advanced_buttons3'] = array('media');
$plugins['media']['extended_valid_elements'] = array('img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|obj|param|embed]');

This was tested on:

  • Drupal 6.x
  • TinyMCE module 6x-1.1-dev
  • TinyMCE 3.0.9
gillianH’s picture

Hi biggena,

Just a quick thank you for the above hint. This worked perfectly so my users can now post YouTube clips etc. without tears.

I'm sorry it has taken such a long time for me to give any feedback - today was the first chance I've had to try the fix out due to holidays and and the demands of a new job taking me away from messing about with Drupal.

gillianH

gillianH’s picture

Status: Active » Fixed

Just updating the status...

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.