Hi
I am working with Infragistics Webhtmleditor v11.2 and using File upload button to upload files. After uplaoding the file(with Upload mode set to 'File'), the editor tries to embed the contents of file in text area whereas I want to provide the link of file to the user instead. There is a way suggested to do that in the following post but that is not appropriate for me.
http://forums.labs.infragistics.com/readmessage?id=%3C16c49fd5$428e8bfe$10d95@news.infragistics.com%3E&group=infragistics.products.netadvantage.aspnet.webhtmleditor
So, I tried to develop the solution by using Upload mode set to 'Upload' only and then in 'after action' of event, I am trying to insert link to the file with <a> tag. The problem is I dont have the name of the file that was uploaded. I got some help from the following post to modify the javascript files to get the file name somehow.
http://forums.infragistics.com/forums/t/44797.aspx
But, when I point javascriptdirectory of my editor to the script folder as suggested in above post, my htmleditor stops working. It becomes kind of read only editor, after clicking any toolbar button I get javascript errors like iged_inti undefined, iged_act undefined etc.
Any help would be appreciated.
I have got the required solution from the following post.
http://forums.archive.infragistics.com/readmessage?id=%3C7086b673$4ed3a928$2afdb3@news.infragistics.com%3E&group=infragistics.products.netadvantage.aspnet.webhtmleditor
Regards
Hello ecelearn ,
Thank you for the update. Regarding the name of the uploaded file it is not a simple requirement.
WebHtmlEditor does not support access properties of Upload dialogs like Modify image.
That dialog is a new window generated on server in response on async request from client on a tool-button click.
There are no public options to change fields in that dialog.
However, when upload dialogs are displayed, then they use ig_htmleditor_upload.js file.
How have you modified the script in order to get the name of the uploaded file?
Hope hearing from you.
Thanks Tsvetelina. Providing javascript directory path in web.config instead of pafe solves the problem and editor is working as normal but I still can not get the name of uploaded file. Can you help for this?
Hello pkgal79 ,
Thank you for posting in our forums
I recommend you using the javaScript directory in the web.config file
http://community.infragistics.com/forums/p/64014/325009.aspx#325009
Please let me know if you need further assistance