I've managed to actually embed a pdf file in a node by editing the HTML manually using code like this:
<EMBED CLASS="xyz" SRC="/files/myfile.pdf#view=FitBH,top&pagemode=none&scrollbar=1&statusbar=0&messages=1&navpanes=1" "BORDER=0 HEIGHT=500 WIDTH=98% ALT="">
I've also used similar code with a more standard (now) OBJECT tag.
TinyMCE is enabled for almost all users and I want to keep it this way. Since it's used most of the time it's also the default. I don't want to require users to "turn TinyMCE on" for the vast majority of nodes just to be able to manually build pages that have an embedded (not a linked) pdf file. Also, I've got a couple of users that need to be able to embed .pdf's that aren't comfortable manually writing HTML; and, to be honest, I don't like doing it either!
TinyMCE and IMCE work well for uploading and referencing images. The same mechanism will upload and build links for pdfs, too. However, TinyMCE destroys the EMBED HTML whenever it "sees" it, e.g., editing a node that was manually built.
It seems that there should be a rather simple way to modify TinyMCE, or add another plugin for pdf's, but I don't understand Javascript, PHP, and their interaction in TinyMCE good enough to build it myself and I haven't been able to find a plugin after extensive searching.
Can anyone help?
Mel
Comments
Me Too!
This is exactly what I'm looking for as well.
Drupal 6.13
I don't need a realistic embedded image (just a text hyperlink would suffice), but I would like for Tinymce/IMCE to offer pdf (and any other generic type) as an upload choice for my users. This way I won't have to use the upload module, which, AFAIK doesn't do the cool file/folder management that IMCE does. Has anyone accomplished this?
awesome. tnx!
:)