Hello! I think u can help me, I didn't found an official solution anywhere.
I'm currently developing a dynamic system with EXTJS, CKEDITOR and CKFINDER (ye I'll buy both commercial licenses when finish it), ok..
I have an extjs treepanel that cames from database, and everytime that I click a node, a new ckeditor instance needs to be rendered. this part is ok.
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 });
But the file uploader plugin (integrated with ckfinder) from CKEditor only runs for the first CKEditor instance that I rendered...
Here's my CKFinder implementation:
<!-- #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>
When selecting an image from CKFinder and its not under the first CKEditor instance, I realised this bug occurs:
'_.filebrowserSe' is null or isn't an object
Re: CKFinder + CKEditor multiple editors error
No. You don't need to create the ajax/ckfinder_browsefiles.asp and ajax/ckfinder_uploader.asp pages
Read this:
http://docs.cksource.com/CKFinder/Devel ... ntegration
Re: CKFinder + CKEditor multiple editors error
Thank you! Sorry for the stupid question hehe