Insert text from SQL to CKEDITOR

I have install CKEDITOR to output text.Now i want to retrieve this text from SQL DB and insert into CKEDITOR for changes and updates.The value that I need to pass is $post_article.`The code below:

<div class="form-group" id="article">
    <label>ΚΕΙΜΕΝΟ</label>
  <textarea class="form-control" name="post_article"  cols="30" rows="20"></textarea>
        <script>CKEDITOR.replace( 'post_article' );
 CKEDITOR.instances.post_article.setData( '<p><?php echo $post_article;?></p>');
       </script>
 </div>

Unfortunately it doesn’t work.Any suggestions or solutions?
Thanks.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.