Socket
Socket
Sign inDemoInstall

angular-redactor

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-redactor

Directive for redactor WYSIWYG editor


Version published
Weekly downloads
241
decreased by-8.02%
Maintainers
1
Install size
14.9 kB
Created
Weekly downloads
 

Readme

Source

Stories in Ready angular-redactor

Angular Redactor is an angular directive for the Redactor editor. http://imperavi.com/redactor/

Important Changes

There is an additional file (angular-redactor-2) for Redactor II. As of version 1.1.0, there is an additional file (angular-redactor-9.x) has been added to accommodate the the 9.x version of redactor, the angular-redactor.js will support the latest version of redactor.

Usage

  1. Include the redactor libraries from http://imperavi.com/redactor/ (The bower version of redactor is unsupported)
  2. In your angular application register angular-redactor as a dependency.
  3. Add the necessary html to view the editor.

Registration


// Angular Registration
angular.module('app', ['angular-redactor']);

Bare Minimum Html

<textarea ng-model="content" redactor></textarea>

With Options

<textarea ng-model="content" redactor="{buttons: ['formatting', '|', 'bold', 'italic']}" cols="30" rows="10"></textarea>

With Plugins

<textarea ng-model="content" redactor="{plugins: ['source']}" cols="30" rows="10"></textarea>

You can pass options directly to Redactor by specifying them as the value of the redactor attribute.

Global Options

angular.module('app', ['angular-redactor'])
  .config(function(redactorOptions) {
    redactorOptions.buttons = ['formatting', '|', 'bold', 'italic'];
  });

Check out the demo folder where you can see a working example. https://github.com/TylerGarlick/angular-redactor/tree/master/demo

Bower Installation

bower install angular-redactor

NPM Installation

npm install angular-redactor

Keywords

FAQs

Last updated on 25 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc