Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
Clear content with Backspace in Summernote field

The problem is when I clear all content with Backspace button causes default

<p><br></p>

tags to be deleted in Summernote 0.8.18

  <script type="text/javascript">
  $(document).ready(function () {
    $('.tinymce-editor').summernote({
      placeholder: 'За допълнителна информация въведете тук.',
      tooltip: false,
      toolbar: [
          ['para', ['ul', 'ol', 'paragraph']],
          ['font', ['superscript', 'subscript']],
      ],
      height:150
    });
  });
  </script>

enter image description here

After that no text can be added unless some of the editor button are clicked. Any solution?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Just discover in my css that I used :

div:empty
{
   display: none;
}

After removed it, problem solved.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!