
<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
http://www.mon_site.fr/CMS
Re: Textaera appears twice
Re: Textaera appears twice
http://ckfinder/userfiles/files/anemone5(1
http://mon_site.fr/CMS/ckfinder/userfil ... anemone5(1
Re: Textaera appears twice
Re: Textaera appears twice
Re: Textaera appears twice
You're the only ones who can do it!
Re: Textaera appears twice
Re: Textaera appears twice
Re: Textaera appears twice
Re: Textaera appears twice