Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 51b7866

Browse files
committed
Update documentation, remove unnecessary method due to ng-change being available
1 parent 4d94282 commit 51b7866

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,11 @@ If you add the ng-model directive to same the element as ui-tinymce then the tex
8787

8888
_The ui-tinymce directive stores the configuration options as specified in the [TinyMCE documentation](http://www.tinymce.com/wiki.php/Configuration) and expects the model value to be a html string or raw text, depending on whether `raw` is `true` (default value is `false`)._
8989

90+
## Options
91+
92+
The directive supports all of the standard TinyMCE initialization options as listed [here](http://www.tinymce.com/wiki.php/Configuration).
93+
94+
In addition, it supports these additional optional options
95+
96+
- `format` Format to get content as, i.e. 'raw' for raw HTML, or 'text' for text only. Documentation [here](http://www.tinymce.com/wiki.php/api4:method.tinymce.Editor.getContent)
97+
- `trusted` When `true`, all TinyMCE content that is set to `ngModel` will be whitelisted by `$sce`

src/tinymce.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ angular.module('ui.tinymce', [])
2828
if (!$rootScope.$$phase) {
2929
scope.$apply();
3030
}
31-
if (angular.isFunction(options.onChange)) {
32-
options.onChange();
33-
}
3431
};
3532

3633
// generate an ID

0 commit comments

Comments
 (0)