Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting a custom name for the upload-image input #573

Merged

Conversation

robinvandernoord
Copy link
Contributor

Fix for #571.

By setting imageInputName you can customize the name of the input used by EasyMDE to upload images. By default it is set to 'image' as it was before.

new EasyMDE({element: document.getElementById('my-textarea'), imageInputName: "easyMDEImage", toolbar: ['upload-image']})
<input class="imageInput" type="file" multiple="" name="easyMDEImage" accept="image/png, image/jpeg, image/gif, image/avif" style="display: none; opacity: 0;">

@Ionaru Ionaru merged commit f039bae into Ionaru:master Dec 21, 2023
5 checks passed
@Ionaru
Copy link
Owner

Ionaru commented Dec 21, 2023

Thank you for the PR!

You can use the new option in the @next version of the package, I'll do a proper release including documentation for the option soon. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants