Easily paste and upload files/images in plain textareas
Clone or download
Rovak Merge pull request #84 from y-chiasson/patch-1
display value of settings.errorText upon failure
Latest commit b18f8a5 Jul 19, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo fixed #58 May 28, 2015
dist updated build Aug 20, 2016
docs Call onFileUploaded when the upload was succesful. Nov 3, 2015
src display value of settings.errorText upon failure Jul 7, 2017
tests added prototype drag-drop test Aug 31, 2014
.gitignore start docs Jun 14, 2014
.travis.yml update nodejs version to 0.10 Jan 25, 2014
Gruntfile.js add input editor to angularjs dist build May 28, 2015
LICENSE Added license Jul 15, 2013
README.md Update README.md Jan 12, 2017
bower.json add bower support Jan 9, 2015
package.json bump version to 2.0.3 Apr 10, 2016


A new version is being developed in the dev-3.x branch

Inline Attachment 2.0.3 Master Branch Build Status

Adds upload functionality to a textarea or CodeMirror instance by either drag-dropping or pasting (only in chrome) an image inside it.

It's similar to pasting of images in Github.


Getting started

The latest versions are available here


The package can be installed using Bower

bower install inline-attachment


Documentation can be found on ReadTheDocs

Handling image uploads

The Demo folder contains an example in PHP on how to handle uploads.


To build the project you need node, npm and grunt 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

This should build the project and the files will appear in the dist/ folder


See Github releases