Hi All,
I found some code to using the File Browser outside of FCKeditor
but it works incorrectly.
FCKEditor version: 2.6.4
CODE:
<script type="text/javascript"> function SetUrl(url) { var labels=document.getElementsByID('myTxt'); labels.value=url; } function OpenImageBrowser() { window.open('FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/asp/connector.asp','BrowseWindow','toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes,width=600,height=400') } </script> <input type="text" ID="myTxt" value=""> <input type="button" value="Pick Image" onclick="OpenImageBrowser();" />
Re: Problem using the File Browser outside of FCKeditor
just add "/FCKeditor/editor/filemanager/" before connectors/asp/connector.asp
before:
Connector=connectors/asp/connector.asp
after:
Connector=/FCKeditor/editor/filemanager/connectors/asp/connector.asp
then file browser will get the correct path and work fine.
Re: Problem using the File Browser outside of FCKeditor
Re: Problem using the File Browser outside of FCKeditor
just add the follow codes to your file which you want to use the File Browser outside of FCKeditor is ok