Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

247
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda