Hello!
I am French and I use a translator to write in English and to understand what you say.
So sorry if my English is not perfect.
I installed and CKeditor CKfinder and I have a little problem :
The textarea is displayed twice:
In the first textarea it is clear that the content myself out of my database.
But the second textarea I do not know where it comes.
But in the first textarea upload image function is not so in the second there is!
This is the code of my page:
<head> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script type="text/javascript" src="ckeditor/adapters/jquery.js"></script> <script type="text/javascript" src="ckfinder/ckfinder.js"></script> </head> <body> <form class="WYSIWYG" method="post" action="cms_admin2ok.php?p=index"> <?php //display in the textarea inside the database: mysql_connect("***", "***", "***"); mysql_select_db("***"); $retour = mysql_query('SELECT * FROM contenu WHERE page="index"'); $donnees = mysql_fetch_array($retour); ?> <textarea name="editor1"><?php echo $donnees['contenu']; ?></textarea> <script type="text/javascript"> window.onload = function() { CKEDITOR.replace( 'editor1' ); }; </script> <?php // Make sure you're using correct path here include_once 'ckeditor/ckeditor.php'; $ckeditor = new CKEditor(); $ckeditor->basePath = 'ckeditor/'; $ckeditor->config['filebrowserBrowseUrl'] = 'ckfinder/ckfinder.html'; $ckeditor->config['filebrowserImageBrowseUrl'] = 'ckfinder/ckfinder.html?type=Images'; $ckeditor->config['filebrowserFlashBrowseUrl'] = 'ckfinder/ckfinder.html?type=Flash'; $ckeditor->config['filebrowserUploadUrl'] = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; $ckeditor->config['filebrowserImageUploadUrl'] = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'; $ckeditor->config['filebrowserFlashUploadUrl'] = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'; $ckeditor->editor('CKEditor1'); ?> <input type="submit" value="Save" /> </form> </body>
Re: Textaera appears twice
$ckeditor->editor('CKEditor1');
CKEDITOR.replace( 'editor1' );
You do not need the javascript one since you are using PHP
Re: Textaera appears twice
Re: Textaera appears twice
$ckeditor->editor('CKEditor1');
With:
$ckeditor->editor('CKEditor1', $donnees['contenu']);
Re: Textaera appears twice
<textarea name="editor1"><?php echo $donnees['contenu']; ?></textarea>
<script type="text/javascript">
window.onload = function()
{
CKEDITOR.replace( 'editor1' );
};
</script>
even with the textarea?
Re: Textaera appears twice
Re: Textaera appears twice
<textarea name="editor1"><?php echo $donnees['contenu']; ?></textarea>
This is to save the content sent in the database, before I had $ _POST ['editor1'], but now there is more than I do how textarea?
No it's good I found it necessary to take $ _POST ['CKEditor1']
Re: Textaera appears twice
I have another problem now:
When I put a link and I will choose a picture and I click on Send to the server, this is the error I :
The application has been unsuccessful: the problem of restricted permissions.
Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 10020 is not allowed to access /var/kunden/webs/cedric/CMS/ckfinder/userfiles/files owned by uid 33 in /var/kunden/webs/cedric/CMS/ckfinder/core/connector/php/php5/CommandHandler/FileUpload.php on line 153
Ckeditor ckfinder and are located in http://www.mon_site.fr/CMS
I therefore congif.php :
$baseUrl = 'ckfinder/userfiles/';
$baseDir = '/var/kunden/webs/cedric/CMS/'.$baseUrl.'';
Re: Textaera appears twice
Re: Textaera appears twice
Yes it was chmod thank you !
But the problem when I make a link here's what I did :
And here is the link it shows : http://ckfinder/userfiles/files/anemone5(1).jpg
Out of this relationship is not exact, the exact link is : http://mon_site.fr/CMS/ckfinder/userfil ... anemone5(1).jpg
Re: Textaera appears twice
Re: Textaera appears twice
With IE it's the same!
I think I need to change the path, but can you tell me where exactly, because there are many complex files and it is complicated to navigate!
In fact, I'd like the images and links are displayed with the full path :
For example :
<img src="http://mon_site.fr/ckfinder/userfiles/images/image.jpg" alt="" />
But in this case I do not know what to put here :
$baseUrl = '';
$baseDir = ''';
Thank you
Re: Textaera appears twice
You're the only ones who can do it!
Re: Textaera appears twice
Try putting 'http://mon_site.fr/' in $baseurl
that should make it work (If it doesn't switch it into base dir and try)
Re: Textaera appears twice
It just does not work because it gives something like this:
/tmp/phph5SFOg/var/kunden/webs/cedric/http://montpasab.fr/CMS/ckfinder/userfiles/images/bannieresite3[4]2.png
It is a real headache should learn the address of the site but it can not be in the way .... so I do not see how!
Re: Textaera appears twice
Re: Textaera appears twice