mrded / textAngular-uploadImage

textAngular plugin allows you to upload images

Home Page:https://www.npmjs.com/package/textangular-uploadimage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

textAngular-uploadImage

This plugin allows adds possibility to upload images into textAngular Text-Editor/Wysiwyg.

After picking a file - it injects <img> tag with base64 right into the content. No actual file upload to a backend is required.

Installation

  • Latest release
  • Bower: bower install textangular-uploadimage
  • NPM: npm install textangular-uploadimage

Usage

// Add 'textAngular-uploadImage' module to your project.
var myApp = angular.module('myApp', ['textAngular-uploadImage']);

// Add 'uploadImage' to the toolbar.
myApp.config(function($provide) {
  $provide.decorator('taOptions', function($delegate) {
    $delegate.toolbar[1].push('uploadImage');
    return $delegate;
  });
});

About

textAngular plugin allows you to upload images

https://www.npmjs.com/package/textangular-uploadimage

License:MIT License


Languages

Language:JavaScript 100.0%