@ragg/inline-attachment
TypeScript icon, indicating that this package has built-in type declarations

5.0.2 • Public • Published

Inline Attachment 5.0.2 Master Branch Build Status

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.

demo

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

Changelog

See Github releases

/@ragg/inline-attachment/

    Package Sidebar

    Install

    npm i @ragg/inline-attachment

    Weekly Downloads

    3

    Version

    5.0.2

    License

    MIT

    Unpacked Size

    59.2 kB

    Total Files

    27

    Last publish

    Collaborators

    • ragg