By huangweiqiu on
I have installed TinyMCE +image-acess ,but what i want is that drupal can upload the images which i pasted on textarea along with the content,rather than clicking the button and then upload them one by one.pls help
thanks in advance.
Comments
=-=
pasted how ?
uisng HTML img tags ?
if you mean pasted as in cut and pasted images, there is nothing that does this to the best of my knowledge.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
what i mean is that I copy a
what i mean is that I copy a article including the images in the article,and then I paste that article into Body and sumit it,I want the images will be uploaded automatically along with the words.help me out pls
=-=
To the best of my knowledge that is not possible.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
why does Joomla can do that
why does Joomla can do that ?why dose Drupal can't, sad~~~
=-=
I don't use Joomla so I can't comment on Joomla's ability in this area.
Is that a Joomla default feature ? or a module, bot addon ?
as a sidenote: there are things drupal can do that joomla doesn't as well.
If every CMS did the same exact thing, would we really need more than one ?
It is Joomla default feature
It is Joomla default feature
paste image name, yes. upload image, no.
Do you understand what HTML and uploads are?
What you CAN do with a wysiwyg is paste a copy of HTML from other web pages. This HTML may include references to images from other sources. And sometimes, this will even work and appear to be "Pasting images" but all it's really doing is copying the image name.
Joomla does NOT upload embedded images for you. (I got a test account at Joomla just to see what you were talking about)
If you try to copy a rich-text-embedded image (like from a word document) or from html on your local machine, it's very unlikely you will get any results inserting that to the web.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Simple pasting of a single image or image link in Drupal
This will not work in Drupal because Drupal is a complete databased program that only recognizes text calls and functions within it's own database. I use the lastest version of Drupal and found that an html call to an image is not possible since the database is constantly updating each page and function with unique url info, and therefore the admin or user has no idea where to call for the image. This means that providing a path to an image will not find the image - - even if the image resides on another server. This is because Drupal will only search for the image internally, within the domain of the database. I have used Joomla extensively and its base code was written to allow for such external calls. Even though the Drupal install claims an image module is installed by default, this image mod is not accessible. I have not tried any other image modules since why would one want to use such a thing simply for an admin - not users - to intergrate a single image into content? It's not like one is attempting to build an image gallery on a web site. We are speaking here of a function even the most stupid of web users use millions of times daily - even from their mobile phones.
=-=
where does drupal state it has an image.module installed by default? it does not. IT uses the GD imagetoolkit by default, maybe this is what you mean.
you can certainly reference images using a path using absolute and relative urls. absolute if calling the image from another site, relative if calling it form your own.
Lastly, Drupal 7 will introduce native image handling in core, with the imageapi, imagecache as well as some other work that has gone into the D7 release. Until then those tools are available as contrib modules which is where they were born.
ensure that when trying to use img tags you are using an input format that supports tags. IE: FILTERED HTML @ it's default settings does not therefore you have to add the img tag to the FILTERED HTML input format or use the FULL HTML input format.
I had a client who tried this
I had a client who tried this (pasted an image from MS word into the body textarea in Drupal). I ended up having to clean an incredibly long string of binary code out of one field of one record. I couldn't even open the node to edit it, and take out the image; the browser would freeze on me.
Just for kicks, I cut that string of binary code and pasted it into an Open Office Writer document. It turned out to be nearly 1,000 pages long.
Does anyone know if there is a way to protect a user from doing this? I need to be able to have them upload images, so I can't filter out the img tag.
Thanks for any help or insight.
=-=
It sounds like you're using a wysiwyg module? if so investigate the insert.module which may aid. Or set up a separate field for images and instruct users how to deal with this properly.
There is also an image resize filter which will aid but to the best of my knowledge just pasting from any document anything with an image in it that isn't uploaded anywhere for drupal to access it ... won't work.