ng-ueditor

WebJar for ng-ueditor

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

ng-ueditor
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

ng-ueditor
WebJar for ng-ueditor
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Astray-git/ng-ueditor

Download ng-ueditor

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.3,1.4)
org.webjars.bower : ueditor-bower jar 1.4.3

Project Modules

There are no modules declared in this project.

ng-ueditor

This directive allows you to add a UEditor to your form elements.

Demo

Requirements

Install

bower install ng-ueditor --save

Usage

Load the script files:

<script type="text/javascript" src="app/bower_components/ueditor-bower/ueditor.config.js"></script>
<script type="text/javascript" src="app/bower_components/ueditor-bower/ueditor.all.min.js"></script>
<script type="text/javascript" src="app/bower_components/angular/angular.js"></script>
<script type="text/javascript" src="app/bower_components/ng-ueditor/dist/ng-ueditor.min.js"></script>

add ng-ueditor module as a depenency:

angular.module('myModule', ['ng.ueditor']);

use as a directive, you must provide a ng-model for view data biding, you can put specific id for multiple editors.

<textarea
    ng-ueditor="Controller.ueditorConfig"
    ready="Controller.ready($editor)"
    ng-model="Controller.ueditorContent"
></textarea>

custom options

  • ng-ueditor add custom config.
  • ready (optional) Breaking change since 0.3 now accept an expression to evaluate upon editor ready (editor instance available as $editor)
  • all-html (optional) normally result is get from UE.Editor.getContent use this attribute tell ueditor to return all html using UE.Editor.getAllHtml, result including some ueditor style blocks.

Building

  • npm install
  • bower install
  • gulp build source files

Versions

Version
0.3.0