Hi,
I have looked a this link
http://docs.cksource.com/CKFinder_2.x/D ... ntegration
and you know it will be a challenge when the help document starts with
CKFinder comes with built-in API to easily integrate it with CKEditor.
Obviously they have done it a million times but they do not start with the first basic questions. A full config file example would be of great help too.
Here is my config.js
CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; config.removePlugins = 'elementspath,save,font,resize,scayt,flash,iframe,iframedialog,fakeobjects,newpage,forms'; };
Do I just add
var editor = CKEDITOR.replace( 'editor1' ); CKFinder.setupCKEditor( editor, '/mypath/ckfinder/' );
after this???
Any help... much appreciated.
Re: Intergating CKFinder with CKEditor on classic asp
Re: Intergating CKFinder with CKEditor on classic asp
Re: Intergating CKFinder with CKEditor on classic asp
Have you set the right paths?
Do you have any error in the console?
have you included the ckfinder.js file?
Re: Intergating CKFinder with CKEditor on classic asp
the textarea id is 'editor1'...
I am just trying to get this to work for starters. Do I create a singleton for the CKEDITOR.editorConfig and call that 'editor1'???
thanks,
Paul
Re: Intergating CKFinder with CKEditor on classic asp
Re: Intergating CKFinder with CKEditor on classic asp
Now that i re-read your original post you state that you are adding
in the config.js file, but that's wrong, that code should go in the page in a load event or at the very least after your textarea has been created.
And the config.js file is loaded automatically, you don't have to manually insert that file into the page.
Re: Intergating CKFinder with CKEditor on classic asp
ok. I will do this real simple and old school. Here is a simple page.
Now I get the error...
hmmmmm....
still no luck..
Re: Intergating CKFinder with CKEditor on classic asp
You have set "ckeditor" as the class for the textarea, and so it triggers the automatic replacemente by class http://docs.cksource.com/ckeditor_api/s ... placeClass
just use any other class name (or none at all)
Re: Intergating CKFinder with CKEditor on classic asp
Problem... concept... solved.
Re: Intergating CKFinder with CKEditor on classic asp
That will integrate any CKEditor (existing or created later) with CKFinder. (the downside is that you can't use different configuration options for each instance)
Re: Intergating CKFinder with CKEditor on classic asp