textangular-uploadimage

0.0.4 • Public • Published

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;
  });
});

Package Sidebar

Install

npm i textangular-uploadimage

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • mrded