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 thunk my selectror are wrongs
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>
I don’t know how to force this.
Anykind of help would be much appreciated