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
http://docs.cksource.com/ckfinder_2.x_a ... onfig.html
http://docs.cksource.com/CKFinder_2.x/D ... ion/ASP_V1
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
viewtopic.php?f=10&t=24946
viewtopic.php?f=10&t=22552