Skip to content

Commit 993736b

Browse files
honeydwesleycho
authored andcommitted
Merged ae37bb9, resolved conflicts
1 parent 73ae1b9 commit 993736b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/tinymce.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ angular.module('ui.tinymce', [])
2929
expression = {};
3030
}
3131

32+
// make config'ed setup method available
33+
if (expression.setup) {
34+
var configSetup = expression.setup;
35+
delete expression.setup;
36+
}
37+
3238
options = {
3339
// Update model when calling setContent (such as from the source editor popup)
3440
setup: function (ed) {
@@ -56,9 +62,8 @@ angular.module('ui.tinymce', [])
5662
ed.on('blur', function(e) {
5763
elm.blur();
5864
});
59-
if (expression.setup) {
60-
scope.$eval(expression.setup);
61-
delete expression.setup;
65+
if (configSetup) {
66+
configSetup(ed);
6267
}
6368
},
6469
mode: 'exact',

0 commit comments

Comments
 (0)