0.0.4 • Published 8 years ago

textangular-uploadimage v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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