@ragg/inline-attachment
v5.0.2
Published
Adds upload functionality to a textarea instance by either drag-dropping or pasting (only in chrome) an image inside it.
Downloads
3
Readme
Inline Attachment 5.0.2
Adds upload functionality to a textarea instance by either drag-dropping or pasting (only in chrome) an image inside it.
It's similar to pasting images in Github.
Supported
- Input and textarea
- jQuery
- CodeMirror 3
- CodeMirror 4
- Angular 1
Getting started
The latest versions are available here
NPM
The package can be installed using NPM
npm install @ragg/inline-attachment
Documentation
Documentation can be found on ReadTheDocs
Handling image uploads
The Demo folder contains an example in PHP on how to handle uploads.
Build
To build the project you need node, npm and gulp installed. These tools can be installed on Ubuntu as follows:
Follow the Node.js guide: Node.js installation
Go to the project folder and run the following:
npm install
npm build
This should build the project and the files will appear in the dist/
folder