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

165
Vistas
Get CKEDITOR.instance by parent element

I have some CKEDITOR.instances with random instance IDs. The editors are delivered via 3rd party API. I wrap the editor instances in a list like this:

<ul>
<li id="mykeyA">
<!-- here is the editor instance 1 with random ID-->
</li>
<li id="mykeyB">
<!-- here is the editor instance 2 with random ID-->
</li>
<li id="mykeyC">
<!-- here is the editor instance 3 with random ID-->
</li>
</ul>

I need to access the CKEDITOR.instance by my ID. Something like: get CKEDITOR.instance placed in the LI-element with ID mykeyB.

I have tried this: $('#mykeyB').children[CKEDITOR.instance] But this does not work.

How do I get the instance by wrapped element?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If someone else looks for it. This works for me

var editor_instance = $('#mykeyB').find('textarea')[0].name;
console.log(CKEDITOR.instances[editor_instance]);
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