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

Commit e3f58dc

Browse files
committed
Provide helper object as second argument to configSetup method
1 parent cafdfa7 commit e3f58dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tinymce.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ angular.module('ui.tinymce', [])
1414
}
1515

1616
var expression, options, tinyInstance,
17-
updateView = function (editor) {
17+
updateView = function(editor) {
1818
if (options.raw === true) {
1919
ngModel.$setViewValue(editor.getContent({format: 'text'}).trim());
2020
} else {
@@ -74,7 +74,9 @@ angular.module('ui.tinymce', [])
7474
updateView(ed);
7575
});
7676
if (configSetup) {
77-
configSetup(ed);
77+
configSetup(ed, {
78+
updateView: updateView
79+
});
7880
}
7981
},
8082
selector: '#' + attrs.id

0 commit comments

Comments
 (0)