Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
quill-drag-and-drop-module
Advanced tools
Quill module to add drag-and-drop support to the Quill container
Quill module to add drag-and-drop support to the Quill container
The quill drag-and-drop module is available as a Bower package and as an npm package.
To install with Bower:
bower install quill-drag-and-drop-module
Or, to install with npm:
npm install --save quill-drag-and-drop-module
It is expected that either:
Instantiate a new Quill like so:
const Quill = require('quill');
const DragAndDropModule = require('quill-drag-and-drop-module');
...
const quill = new Quill('#basic-wrapper .editor-container', {
modules: {
toolbar: {
container: '#basic-toolbar'
},
dragAndDrop: {
draggables: [
{
content_type_pattern: DragAndDropModule.image_content_type_pattern,
tag: 'img',
attr: 'src'
},
],
onDrop(file) {
return DragAndDropModule.utils.getFileDataUrl(file)
.then(base64 => {...})
.then(response_from_server => response_from_server.url_of_resource);
}
}
}
});
See the demo for a working example.
To compile the ES2015 source to ES5 UMD, do the following in a Node.js enabled environment:
cd /path/to/git/repo
npm install
npm run compile
The quill drag-and-drop module is released under the MIT License. Please see the LICENSE file for details.
FAQs
Quill module to add drag-and-drop support to the Quill container
We found that quill-drag-and-drop-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.