You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
**Be sure not to set an `id` attribute**. This is because the directive needs to maintain selector knowledge in order to handle buggy behavior in TinyMCE when DOM manipulation is involved, such as in a reordering of HTML through ng-repeat or DOM destruction/recreation through ng-if.
61
+
62
+
## Working with ng-model
63
+
64
+
The ui-tinymce directive plays nicely with the ng-model directive such as ng-required.
65
+
66
+
If you add the ng-model directive to same the element as ui-tinymce then the text in the editor is automatically synchronized with the model value.
67
+
68
+
_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`)._
69
+
59
70
## Options
60
71
61
-
All the TinyMCE options can be passed through the directive, as well as some helpers.
72
+
The directive supports all of the standard TinyMCE initialization options as listed [here](http://www.tinymce.com/wiki.php/Configuration).
73
+
74
+
In addition, it supports these additional optional options
75
+
76
+
-`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)
77
+
-`trusted` When `true`, all TinyMCE content that is set to `ngModel` will be whitelisted by `$sce`
The ui-tinymce directive plays nicely with the ng-model directive such as ng-required.
85
-
86
-
If you add the ng-model directive to same the element as ui-tinymce then the text in the editor is automatically synchronized with the model value.
87
-
88
-
_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`)._
89
-
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`
0 commit comments