hi,

i just managed to activate tinyMCE's media plugin (http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media) in the Wysiwyg API module.

1. go to /modules/wysiwyg/editors/tinymce.inc

and add:

    'media' => array(
      'path' => $editor['library path'] .'/plugins/media',
      'buttons' => array('media' => t('Insert media')),
      'url' => 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media',
      'internal' => TRUE,
      'load' => TRUE,
    ),

i put it just after

 'removeformat' => t('Remove format'),
        'charmap' => t('Character map'),
        'help' => t('Help')),
      'internal' => TRUE,
    ),

2. go to administer > by module > wysiwyg
and activate the button for all the formats you wish

since i dont really program, i guarantee for nothing... also i dont know, if this info is in the right place. as i could not find much on the tinyMCE plugin handling with Wysiwyg API module, i thought i will still contribute it.

hope its of any use

Comments

mailme.eva’s picture

so in the end im not sure if i did any good: the mediaplugin seems to work (button, popup, etc....) i cant see the movies... whats wrong? i dont know...
there is also this post, but its for 6.x...
http://drupal.org/node/350480

mailme.eva’s picture

seems like the html, that embeds the code simply gets eliminated....
anybody knows how i can change that?

mailme.eva’s picture

Solved: you have to add <object> and <param> to the list of allowed HTML-tags in your inputformat (in: Home › Administer › Site configuration › Input formats, choose the input format you want to use and go to Configure)
:-)

mailme.eva’s picture

now theres still a problem, but i think its a bug: the code inserted is the following:

<p>
<object width="425" height="350" data="http://www.youtube.com/v/V-rLL4V_jM8" type="application/x-shockwave-flash"></p>
<param name="src" value="http://www.youtube.com/v/V-rLL4V_jM8" />
</object>
</p>

there is a p-closing-tag in the middle of the embed, after the object-opening-tag!
i think this is a bug?

mailme.eva’s picture

i disabled the linebreak-converter filter for the input format and now it seems to work...

ergophobe’s picture

A conversation with yourself! I only just discovered it, but your notes will save me some headache on a site I'm working on.

Thanks for taking the time!

Yosemite Explorer - hiking and climbing in Yosemite (drupal)

sebagr’s picture

Hey, thanks for having this "solo" chat. It really helped me include this in my site.

Now I'll look to include ImageManager; hopefully, I can follow your steps and everything's gonna work similarly.

Thanks again!

james.nadeau’s picture

Very useful, thanks, this isn't documented anywhere else

giorgosk’s picture

its worth to note that as reported in this thread http://drupal.org/node/379182 the flash plugin when enabled won't let the editor appear where it should ... might help someone ...

------
GiorgosK
Web Development

rgreyesb’s picture

Thank you very much. This was the solution I was looking for.

I took some time to find the solution in DRUPAL but found it. Only needed to have a little patience.

I do not think it's worth saying that I had found almost everything that you recommended, the reality is that I had not integrated the plugin and thus I had not achieved the goal.

I am not an expert in Drupal, PHP, JavaScipt, etc.. but I intend, with DRUPAL study, to achieve my first goal of creating my website without being an expert.

Looks like I succeeded even though it is sometimes very frustrating. We must not lose hope because there are many (thousands) of people with no interest bearing DRUPAL provide solutions that have been found.

Thank you all.

msjones design’s picture

Thank you Thank you

janamills’s picture

thanks loads for taking the time to post this, searched high and low for a simple solution!