Optional
buildOptional
headers['jpg', 'png', 'jpeg', 'gif']
Jodit.make('#editor', {
uploader: {
insertImageAsBase64URI: true,
imagesExtensions: ['jpg', 'png', 'jpeg', 'gif', 'svg', 'webp']
}
});
Optional
queryOptional
prefix: stringThe method can be used to change the displayed name of the uploaded file
Jodit.make('#editor', {
uploader: {
url: 'https://sitename.net/jodit/connector/index.php?action=fileUpload',
getDisplayName: (_, name) => 'File:' + name
}
});
The method can be used to change the name of the uploaded file This is the name the file will have when it is sent to the server
Jodit.make('#editor', {
uploader: {
url: 'some-connector.php',
processFileName: (key, file, name) => {
return [key, file, 'some-prefix_' + name];
}
}
});
If you like Jodit - try Jodit PRO
List of extensions for images