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.
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,23 @@ _The ui-tinymce directive stores the configuration options as specified in the [
77
77
78
78
The directive supports all of the standard TinyMCE initialization options as listed [here](http://www.tinymce.com/wiki.php/Configuration).
79
79
80
+
Use the [setup](https://www.tinymce.com/docs/configure/integration-and-setup/#setup) function to bind different events:
81
+
82
+
```javascript
83
+
scope.tinymceOptions= {
84
+
setup:function(editor) {
85
+
//Focus the editor on load
86
+
$timeout(function(){ editor.focus(); });
87
+
editor.on("init", function() {
88
+
...
89
+
});
90
+
editor.on("click", function() {
91
+
...
92
+
});
93
+
}
94
+
};
95
+
```
96
+
80
97
In addition, it supports these additional optional options
81
98
82
99
-`format` Format to get content as, i.e. 'raw' for raw HTML, or 'text' for text only. Defaults to 'html'. Documentation [here](http://www.tinymce.com/wiki.php/api4:method.tinymce.Editor.getContent)
0 commit comments