<textarea cols="80" id="editor1" name="content" rows="10" >
</textarea>
<script>
CKEDITOR.replace( 'editor1' );
</script>
That is working properly and I am getting the edit textbox, but now I need to get data from the database. For that I am doing:
<textarea cols="80" id="editor1" value="<?php echo $rows['content']; ?>" name="content" rows="10" >
</textarea>
<script>
CKEDITOR.replace( 'editor1' );
</script>
But it does not show me my data.
I have tried data I am getting in simple textarea but not in CKEDITOR.
What am I doing wrong?