Anca Paula Luca wrote:
Hi Asiri,
Asiri Rathnayake wrote:
Devs,
I'm working on integrating office importer functionality into our new wysiwyg editor and I thought of sharing few ideas and different approaches available to us so that you can comment on them and help me select the most appropriate path.
[...]
And the final question is about embedded elements inside pasted html content (like images). This is not a problem if the whole document is uploaded for importing; the document is a container for images and they can be retrieved on the server. But with pasted html content, images are simply links to local files. Now I don't know if it's possible to trigger an automated upload of these files
I seriously doubt this is possible, you cannot even set a fileupload input field programatically for security reasons. If you could trigger an automated upload for images then you could trigger upload of "other files" too, which is a bit of a security issue.
I have a source saying it would be possible (without details on how), so it is worth looking into it (less priority than make the stuff work first without images). I would look into secure javascript and possible binding between javascript and XUL (for FF) and COM (for IE). This very probably requires signed javascript but it's worth looking into it. Ludovic
Happy coding, Anca Luca
but for the moment I'm proposing we should strip-off such content.
Thanks.
- Asiri _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost