chriskiehl / dropler Goto Github PK
View Code? Open in Web Editor NEWA drag and drop Image upload plugin for CKEditor
License: MIT License
A drag and drop Image upload plugin for CKEditor
License: MIT License
var editor = CKEDITOR.instances.demotextarea;
that line of code is not necessary i think and its giving me an error of undefined document during element creation.
editor.document.createElement
Hi, after uploading I get an error(console):
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://.....' is therefore not allowed access. The response had HTTP status code 403.
In response, the image url is https://Bucket.s3-ap-southeast-1.amazonaws.com/sample.jpeg (image file failed to upload)
And my S3 correct url should be like this:
https://s3-ap-southeast-1.amazonaws.com/Bucket/sample.jpg
I have no idea how can i fix this problem.
thanks!
Please,
may someone explain me exactly what shouly I do to work with Imgur? After I create an account in imgur it gave me 2 keys. 1 is the client ID ad the other is the client secret. So what should I do now? ANd what option should I choose at Imgur? OAuth with or without callback? Or Anonymus?
Thank you for the help.
I've followed the directions, but when I drag an image over it just takes up the whole screen, meaning it just opens the file on that tab...
On your CKEDITOR's "instanceReady", you do this :
var iframeBase = document.querySelector('iframe').contentDocument.querySelector('html');
So, it selects the first iframe in the page. If there are mutltiple ckEditor then there are multiple iframes so it creates weird unexpected behaviors because it usually selects the same iframe.
In that case, it would be nice to select the right ckEditor depending of the id contained in the editor, so it would imply a small modification about the first selector to get the iframeBase.
Thanks
I am Using your plugin but it not working display error "[CKEDITOR.resourceManager.load] Resource name "dropler" was not found at" like this.please tell me what is the mistake here.
Thanks
Your Markdown is formatted wrong it is not ##something
it is ## something the space is crucial
If people upload different files with the same name, they will just override eachothers. The key should be unique.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.