Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

summernote in laravel

How to Use Summernote Editor in Laravel ?

In this article we will learn how to use summernote editor in laravel.

I’m going to show you about how to install summernote in laravel. you can
use summernote editor in laravel 5.8, laravel 6, laravel 7 and laravel 8.

Summernote is a JavaScript library that helps you create WYSIWYG editors online, Summernote is wide range use and very popular.

you can easily use Summernote without using any library. Summernote provide to use HTML Element for text content formatting. Summernote provide listing, image upload, link, font style, bold, italic, alt tags etc.

We have multiple Editors like Ckeditor or more, but Summernote gives you more rich Features.

Summernote Documentation :

Summernote has a few special features:

  • Paste images from clipboard.
  • Saves images directly in the content of the field using base64 encoding, so you don’t need to implement image handling at all.
  • Simple User Interface.
  • Well Designed.
  • Interactive WYSIWYG editing.
  • Handy integration with server.
  • Supports Bootstrap 3 and 4 integrities.
  • Summernote is built on jQuery.
I will give you simple example that will show you how to add and use Summernote in laravel application.


      <title>How to Use Summernote Editor with Laravel</title>
      <script src="" crossorigin="anonymous"></script>
      <script src=""></script>
      <link rel="stylesheet" href="">
      <script src=""></script>
      <link href="" rel="stylesheet">
      <script src=""></script>
      <div class="container">
         <div class="row">
            <div class="col-md-8 offset-2 mt-5">
               <div class="card">
                  <div class="card-header bg-primary">
                     <h6 class="text-white">How to Use Summernote  Editor with Laravel</h6>
                  <div class="card-body">
                     <form method="post" action="" enctype="multipart/form-data">
                        <div class="form-group">
                           <label>Product Name</label>
                           <input type="text" name="p_name" class="form-control"/>
                        <div class="form-group">
                           <label>Product Description :</label>
                           <textarea class="summernote_dessription" name="p_description"></textarea>
                        <div class="form-group">
                           <label>Product Catalog :</label>
                           <textarea class="summernote_catalog" name="p_catalog"></textarea>
                        <div class="form-group text-center">
                           <button type="submit" class="btn btn-info btn-sm">Submit</button>
      <script type="text/javascript">
         $(document).ready(function() {




    public function Summernote()
        return view('addNote');
Note : Please add summernote css and js in your layouts or Blade file.

Summernote css :

<link rel="stylesheet" href="">
<link href="" rel="stylesheet">

Summernote js :

<script src="" crossorigin="anonymous"></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>

Output :

summernote in laravel
When you display Data use this for Removing html tags in Laravel blade :
{!! $varaible->summernote_dessription !!}