Hello,
I am working on incorporating RadEditor into a project. In that project, all access to image files, documents, etc, passes through a GetFiles.aspx page, where that GetFiles.aspx page checks permissions before streaming the file to the browser. Along with restricted permissions on the folders themselves, this ensures that nobody can browse directly to the files in question.
This means that img tags in the page, must be something like this: <img src="getfiles.aspx?=imageurl.gif">.
This RadEditor is being integrated into a Wiki, so I may even want to output a custom Wiki markup tag insteadThis RadEditor is being integrated into a Wiki, so I may even want to output a custom Wiki markup tag instead
In RadEditor, I see two possible solutions.
I am working on incorporating RadEditor into a project. In that project, all access to image files, documents, etc, passes through a GetFiles.aspx page, where that GetFiles.aspx page checks permissions before streaming the file to the browser. Along with restricted permissions on the folders themselves, this ensures that nobody can browse directly to the files in question.
This means that img tags in the page, must be something like this: <img src="getfiles.aspx?=imageurl.gif">.
This RadEditor is being integrated into a Wiki, so I may even want to output a custom Wiki markup tag insteadThis RadEditor is being integrated into a Wiki, so I may even want to output a custom Wiki markup tag instead
In RadEditor, I see two possible solutions.
- Customize the link as it is pasted into the RadEditor after it is selected from the ImageEditor dialog. Is there a way to do this?
- Make my own ImageEditor dialog. I think I prefer this method since I may want to make some subtle changes to the dialog. If I go this route, is there a way to re-use some of the existing functionality, such as the image previewer and editor? I know I can do the ExternalDialog thing and modify the .ascx files, but I'm not sure this gives me full control to completely retool things. Is there a way to re-use some of the components in our own dialogs? The FileManager is easy now since it it is it's own control, but I don't see anyway to reuse the other things like the ImagePreviewer and ImageEditor.
Thanks,
Chris