the following code is my testing,
the CKFinder is NOT run and a js error is occured:o is undefined
Please help me.thanks a lot....
the CKFinder is NOT run and a js error is occured:o is undefined
<script type="text/javascript" src="<?php echo $CONFIG->wwwroot; ?>mod/ckeditor/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="<?php echo $CONFIG->wwwroot; ?>mod/ckeditor/ckfinder/ckfinder.js"></script> <script language="javascript" type="text/javascript"> //replace the textarea with ckeditor var editor = CKEDITOR.replace( 'edit_<?php echo $edit_id; ?>', { toolbar:'Full', language:'<?php echo $language; ?>' }); CKFinder.setupCKEditor( editor, { BasePath : '/mod/ckeditor/ckfinder/' }); </script>
Please help me.thanks a lot....
Re: Help,A javascript error has occured....
'CKFinder.setupCKEditor( editor,'/mod/ckeditor/ckfinder/' ); '
replace the code
'CKFinder.setupCKEditor( editor,
{
BasePath : '/mod/ckeditor/ckfinder/'
}); '
then it can runing ,why???
thanks;
Re: Help,A javascript error has occured....
try with "basePath"
http://docs.cksource.com/ckfinder_2.x_a ... upCKEditor
Re: Help,A javascript error has occured....
It is OK!
hoho.... I'm only read the sample in the _samples\ckeditor.html....