angular-redactor

WebJar for angular-redactor

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-redactor
Last Version

Last Version

1.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

angular-redactor
WebJar for angular-redactor
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/TylerGarlick/angular-redactor

Download angular-redactor

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-redactor/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-redactor</artifactId>
    <version>1.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-redactor/
implementation 'org.webjars.bower:angular-redactor:1.1.4'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-redactor/
implementation ("org.webjars.bower:angular-redactor:1.1.4")
'org.webjars.bower:angular-redactor:jar:1.1.4'
<dependency org="org.webjars.bower" name="angular-redactor" rev="1.1.4">
  <artifact name="angular-redactor" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-redactor', version='1.1.4')
)
libraryDependencies += "org.webjars.bower" % "angular-redactor" % "1.1.4"
[org.webjars.bower/angular-redactor "1.1.4"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : jquery jar [2.0.0,)
org.webjars.bower : angular jar [1.2.0,)

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.1.4