Hi There,
I'm using CKEditor and CKFinder in my CakePHP project. I'm not worried about the actual integration with CakePHP, let's just talk about the final output, the HTML. Below is my code. The issue is that the CKFinder is not appearing when I click on Images.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>
Insight Administration:
Pages </title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<link href="/insight/favicon.ico" type="image/x-icon" rel="icon" /><link href="/insight/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<link rel="stylesheet" type="text/css" href="/insight/css/cake.generic.css" />
<link rel="stylesheet" type="text/css" href="/insight/css/datePicker.css" />
<link rel="stylesheet" type="text/css" href="/insight/css/jquery-ui-1.8.21.custom.css" />
<script type="text/javascript" src="/insight/js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="/insight/js/jquery-ui-timepicker.js"></script>
<script type="text/javascript" src="/insight/js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/insight/js/ckfinder/ckfinder.js"></script>
....
<textarea name="data[Page][body]" class="ckeditor" cols="30" rows="6" id="PageBody"></textarea>
....
<script type="text\javascript">
{
CKFinder.setupCKEditor(null, '/insight/js/ckfinder' );
}
</script>
I even ran this setupCKEditor command in the console of the Chrome toolbar.
CKFinder.setupCKEditor(null,'/insight/js/ckfinder' )
undefined
CKFinder.setupCKEditor('data[Page][body]','/insight/js/ckfinder' )
TypeError: Cannot set property 'filebrowserBrowseUrl' of undefined
CKFinder.setupCKEditor('PageBody','/insight/js/ckfinder' )
TypeError: Cannot set property 'filebrowserBrowseUrl' of undefined
Wed, 09/05/2012 - 03:46
#1