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&CKEditorFuncNum=1&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?