editorCK = CKEDITOR.replace("Meditor_id"+id+",
{
skin : 'office2003',
height: ckeditorHeight,
toolbar: Custom,
filebrowserBrowseUrl : 'ajax/ckfinder_browsefiles.asp',
filebrowserUploadUrl : 'ajax/ckfinder_uploader.asp',
filebrowserWindowWidth : '640',
filebrowserWindowHeight : '480' ,
toolbarCanCollapse: false ,
startupFocus : true
});<!-- #INCLUDE file="../ckfinder/config.asp" -->
<!-- #INCLUDE file="../ckfinder/ckfinder.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Gerenciador de Arquivos</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<style type="text/css">
body {
margin:0px;
padding:0px;
}
</style>
<script type="text/javascript">
// This is a sample function which is called when a file is selected in CKFinder.
function ShowFileInfo( fileUrl, data )
{
/* alert(data['selectFunctionData']);
var dialog = this.getDialog();
alert(dialog);
dialog.getContentElement('tab1', 'id1').setValue(data['fileUrl']);
document.getElementById(data["selectFunctionData"]).value = fileUrl ;
alert( 'The selected file URL is "' + fileUrl + '"' ) ;*/
}
function SetUrl( fileUrl, data )
{
var CKEditorFuncNum = 1;
window.top.opener.CKEDITOR.tools.callFunction(CKEditorFuncNum, fileUrl);
window.top.close();
}
</script>
</head>
<body>
<%
' You can use the "CKFinder" class to render CKFinder in a page:
Dim oFinder
Set oFinder = New CKFinder
oFinder.BasePath = "../ckfinder/" ' The path for the installation of CKFinder (default = "/ckfinder/").
oFinder.SelectFunction = "SetUrl"
oFinder.Create
' It can also be done in a single line, calling the "static"
' CKFinder_CreateStatic( basePath, width, height, selectFunction ) function:
' CKFinder_CreateStatic "../../", empty, empty, "ShowFileInfo"
%>
</body>
</html>'_.filebrowserSe' is null or isn't an object
Re: CKFinder + CKEditor multiple editors error
http://docs.cksource.com/CKFinder/Devel ... ntegration
Re: CKFinder + CKEditor multiple editors error