New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-redactor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-redactor

Directive for redactor WYSIWYG editor

  • 1.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
171
increased by22.14%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 25 May 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc