Skip to content

Commit 7b38495

Browse files
committed
Update ReadMe.
1 parent 5caa639 commit 7b38495

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@ The *angular-froala* directive exposes the following additional option:
8080

8181
### Methods
8282

83-
To use the methods available, access the editor instance from your froalaOptions object `$scope.options.froalaEditor(method)` and use it as described in the [method docs](http://froala.com/wysiwyg-editor/docs/methods). example:
83+
To use the methods available, access the editor instance from your froalaOptions object `$scope.options.froalaEditor.methodName()` and use it as described in the [method docs](http://froala.com/wysiwyg-editor/docs/methods). example:
8484

8585
```javascript
8686
function myCtrl($scope){
8787
$scope.myHtml = "";
8888
$scope.froalaOptions = {
8989
toolbarButtons : ["bold", "italic", "underline", "|", "align", "formatOL", "formatUL"],
9090
events: {
91-
'froalaEditor.initialized': function () {
91+
'froalaEditor': function () {
9292
// Use the methods like this.
93-
$scope.froalaOptions.froalaEditor('selection.get');
93+
$scope.froalaOptions.froalaEditor.selection.get();
9494
}
9595
}
9696
}
@@ -107,7 +107,7 @@ _app.js_
107107
$scope.froalaOptions = {
108108
placeholder: "Edit Me",
109109
events : {
110-
'froalaEditor.focus' : function(e, editor) {/* ... */}
110+
focus: function(e, editor) {/* ... */}
111111
}
112112
}
113113
```

0 commit comments

Comments
 (0)