Comments (4)
Interesting idea. I wasn't familiar with the jQuery File Upload until now, but it looks like a way to go. I like the idea of shifting responsibilities to other plugins and focusing only on doing core features right.
Maybe a good solution would be to allow developers to choose - if someone prefers basic jQuery ajax, they can use it, or they can choose jQuery File Upload instead.
from medium-editor-insert-plugin.
I would have a stab at this, but at the moment I'm out of my depth. I work mostly in Ruby, and JavaScript isn't exactly my forte. I'm reading through the code right now, and there are a lot of helpful comments.
Is it possible in theory to hijack the upload method and refer it to another library like jQuery file upload where we can bridge the two plugins programatically?
Would the bulk of the work happen in medium-editor-insert-images.js
? Do I need to touch the medium-editor-insert-plugin.js
file?
from medium-editor-insert-plugin.
Everything regarding the file upload should be in medium-editor-insert-images.js
file
from medium-editor-insert-plugin.
I made possible to override upload function (67f3910), so if you want, you can replace jQuery ajax with something more sophisticated.
$('.editable').mediumInsert({
editor: editor,
addons: {
images: {
uploadFile: function ($placeholder, file, that) {
// DO WHATEVER YOU WANT HERE
}
}
}
});
from medium-editor-insert-plugin.
Related Issues (20)
- Cannot choose order of image styles buttons
- Don't work when MediumEditor is not defined globally HOT 1
- Trigger image upload with custom button HOT 1
- insert plus at wrong position after page is scrolled (V2) HOT 1
- Are there any way to add more field beside caption when we click the embedded image ? HOT 1
- Package vulnerability warnings HOT 3
- How i can use with nuxt ?
- The + button position break when apply to bootstrap column.
- net::ERR_CERT_COMMON_NAME_INVALID HOT 2
- Youtube video import no longer works HOT 2
- Delete text action (backspace button) on empty field broken HOT 1
- base64 issue ?
- i am getting one problem that is i am not able to configure npm package medium-editor-insert plugin into Angular 8. can you please help me in this HOT 1
- Base64 image content's "+" plus get replaced by space
- About MediumInsert cannot init
- How can i parse link when paste in editor without parseOnPaste option
- adding image to the medium Editor
- I want some help
- Upload function override
- Addon not working other than youtube
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from medium-editor-insert-plugin.