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

242
Views
Inside Ckeditor if I type text or backspace input checkbox will uncheck and value will change

If I change any text or give backspace checkbox will unchecked and value will 0 in Ckeditor. I tried but I can't do it. How can I solve this problem?

 CKEDITOR.replace( 'editor1' );
    <script src="https://cdn.ckeditor.com/4.16.2/standard/ckeditor.js"></script>
    
    <input type="checkbox" id="description" value="1" checked>
    <textarea name="editor1">Lorem ipsum dolor amet</textarea>

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

0

You can listen event change of CKEDITOR.instances

        const checkbox = document.getElementById('description');
        CKEDITOR.replace('editor1');
        for (const i in CKEDITOR.instances) {
            CKEDITOR.instances[i].on('change', function () {
                checkbox.checked = false;
                checkbox.value = 0;
            });
        }

or instance that you need

        const checkbox = document.getElementById('description');
        CKEDITOR.replace('editor1');
        CKEDITOR.instances.editor1.on('change', function () {
            checkbox.checked = false;
            checkbox.value = 0;
        });
        
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!