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

151
Views
CKEditor 4 CDN specify file type on upload button

I'm trying to specify CKEditor 4 input type file and specify img file on input type file. But I can not modify it since it's created by the plugin.

So I'm trying to add those attribute, but it's not working, I have a lot of mistake, I think my selector is wrong.

I'm calling this code on ready function so I'm sure the CKEditor form is fully loaded when I call it:

$('#cke_126_fileInput_input').attr('accept', 'image/png, image/jpeg');

The form of CKEditor contains this input:

    <form enctype="multipart/form-data" method="POST" dir="ltr" lang="fr" action="/uploader/upload.php?CKEditor=msg-area&amp;CKEditorFuncNum=1&amp;langCode=fr">
<label id="cke_125_label" for="cke_126_fileInput_input" style="display:none">Envoyer sur le serveur</label><input style="width:100%" id="cke_126_fileInput_input" aria-labelledby="cke_125_label" type="file" name="upload" size="38"></form>

How can I force this?

about 4 years ago · Juan Pablo Isaza
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!