Hello -
We use the FCKEditor as part of our ticketing tool, and it is very common that users cut/paste data into the FCKEditor from Word or Outlook. After analyzing the cut/paste HTML, I noticed that Outlook & Word both write the images to the file system:
file:///C:/DOCUME~1/JEHOWA~1/LOCALS~1/Temp/msohtmlclip1/01/clip_image002.jpg
Would it be possible to simply pre-populate N number of "File Upload" controls with the path to the temporary image, then replace the file:/// URI reference with the new image path uploaded o the server? To make it more user-friendly it would help to have a "Add All Files" button to kick off the upload so the user would not need to click "Add the file" N number of times.
Thoughts?
We use the FCKEditor as part of our ticketing tool, and it is very common that users cut/paste data into the FCKEditor from Word or Outlook. After analyzing the cut/paste HTML, I noticed that Outlook & Word both write the images to the file system:
file:///C:/DOCUME~1/JEHOWA~1/LOCALS~1/Temp/msohtmlclip1/01/clip_image002.jpg
Would it be possible to simply pre-populate N number of "File Upload" controls with the path to the temporary image, then replace the file:/// URI reference with the new image path uploaded o the server? To make it more user-friendly it would help to have a "Add All Files" button to kick off the upload so the user would not need to click "Add the file" N number of times.
Thoughts?
Re: Simple concept for cutting pasting HTML with local images
You can't set the .value on an input type=file, this is due to obvious security concerns as it would allow any attacker to grab any file on your computer.
I plan to do this kind of trick in a Firefox extension, as that can skip the security restrictions, and meanwhile I posted a suggestion to the W3C HTML5 working group http://lists.w3.org/Archives/Public/pub ... /0198.html but no one has even replied about it, so don't hold your breath for it.