<?php
session_start();
$_SESSION['IsAuthorized']=true;
?>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="ckeditor/ckeditor.js"> </script>
<script type="text/javascript" src="ckeditor/adapters/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#textarea").ckeditor();
});
</script>
<?php
include_once '../ckeditor/ckeditor.php';
include_once '../ckfinder/ckfinder.php';
$ckeditor = new CKEditor();
$ckeditor->basePatch = '/ckeditor/';
CKFinder ::SetupCKeditor($ckeditor, '/ckfinder/');
$ckeditor->editor('contenu');
?>
</head>
<body>
</body>
</html>
Tue, 12/27/2011 - 10:35
#1

Re: Put a value to the textarea of Ckfinder
Assuming that you have included ckfinder.js and ckeditor.js in your page, you may simply use something as simple as:
$(document).ready(function(){ var editor = CKEDITOR.replace( 'editor1' ); CKFinder.setupCKEditor( editor, '/ckfinder/' ); });where 'editor1' is the ID of textarea element on the page.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Put a value to the textarea of Ckfinder
Here is my code with Ckfinder and my field ever complete :
This is my code which doesn't work. The aim is the same that before but include ckfinder.
<html> <head> <title>Ckeditor, Ckfinder and specific value</title> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script type="text/javascript" src="ckfinder/ckfinder.js"> </script> <script type="text/javascript"> $(document).ready(function(){ var editor = CKEDITOR.replace( 'editor1' ); CKFinder.setupCKEditor($ckeditor, '/ckfinder/'); }); </script> </head> <body> My Editor:<br /> <textarea id="editor1" name="editor1">Here is my message</textarea> <script type="text/javascript"> CKEDITOR.replace( 'editor1' ); </script> </body> </html>So what is the problem ?
Thanks
Re: Put a value to the textarea of Ckfinder