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

164
Views
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 answers
Answer question

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 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!