Hi,
I am trying to set BaseUrl and BaseDir in code when i replace textarea with CKEditor /CKfinder rather than specifying in config.asp.
is there any way to set it in code or config.asp dyanamically.
I dont want to use session.
I will appreaciate your help
Thank you,
Amitkumar
I am trying to set BaseUrl and BaseDir in code when i replace textarea with CKEditor /CKfinder rather than specifying in config.asp.
is there any way to set it in code or config.asp dyanamically.
I dont want to use session.
I will appreaciate your help
Thank you,
Amitkumar
Re: specifying BaseUrl and BaseDir dynamically
Just like I suggested in viewtopic.php?f=10&t=24951&p=63877#p63877 , you can specify a different id for each situation and in the config.asp switch between the different BaseUrl and BaseDir based on request("id")
for javascript integration:
http://docs.cksource.com/ckfinder_2.x_a ... onfig.html
Re: specifying BaseUrl and BaseDir dynamically
Thank you for the response.
I am doing integration like this
<% Dim oCKEditor
Set oCKEditor = New CKEditor
oCKEditor.BasePath = "/ckeditor/"
CKFinder_SetupCKEditor oCKEditor, "", empty, empty
oCKEditor.editor "CKEditor1", initialValue
%>
how can i set id of CKFinder here ?
or if I put your script in , what changes should i do to make it work ?
I think the way you say. I will have to create separate instance. then how can i integrate ckfinder with ckeditor?
My BaseUrl changes based on user login. It is not fixed .
e.g. if user with id 1 of compnay 1 has logined then baseUrl = /Images/company1/user/1/
if user with id 5 of compnay 2 has logined then baseUrl = /Images/company2/user/5/
Can you please help me here?
Thank you again,
Amitkumar
Re: specifying BaseUrl and BaseDir dynamically
Re: specifying BaseUrl and BaseDir dynamically
So is it possible ?
is there any way to pass path by querystring and set it in config.asp ?
Re: specifying BaseUrl and BaseDir dynamically
baseUrl = "/images/Company" & session("company") & "/user/" & session("user") & "/"
or
if session("User")=1 and session("company")=1 then
baseUrl = "/images/company1/user/1/"
else
etc...
In any event, be very careful about your ideas on passing a path with the querystring because you could open a huge security hole: an evil user could use any tool to modify the path that it's sent back to the server and he would get access to any folder in the server.
Re: specifying BaseUrl and BaseDir dynamically
Actually I dont want to use session and thats the reason why i am looking for a way to pass it by querystring.
I was trying to do manual integration using javascript
and I am facing some problem for which i have posted question here:
viewtopic.php?f=10&t=24946
if you can help me there , then also i can find my workaround for this problem.
also can I pass id or extra questring parameters in all those url and retrive its value in config.asp ? if yes then
what is the code to retrive those paramters in config.asp?
I am asking this because i read post here :
viewtopic.php?f=10&t=22552