How to display data in ckeditor?

You can display data in ckeditor by passing the variable value which you get from the database.

Answers 1
  • Display data in ckeditor (ckeditor5/30.0.0/classic) from database

    //1. Add script to head of HTML page
    <script src="https://cdn.ckeditor.com/ckeditor5/30.0.0/classic/ckeditor.js"></script>
    
    //2. Add HTML input element after opening form tag in file
    //Get data from database and display in view file in between of HTML textarea input.
    <textarea id="editor" name="body"><?php echo $data->body ; ?>
    
    0
  • Back to code snippet queries related php