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

Commit 560e499

Browse files
committed
Tweaked plugin for proper initialization in v3
1 parent 8ef3cab commit 560e499

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
@@ -39,7 +39,9 @@ angular.module('ui.tinymce', [])
3939
scope.$apply();
4040
}
4141
});
42-
}
42+
},
43+
mode: 'exact',
44+
elements: attrs.id
4345
};
4446
if (attrs.uiTinymce) {
4547
expression = scope.$eval(attrs.uiTinymce);
@@ -48,7 +50,7 @@ angular.module('ui.tinymce', [])
4850
}
4951
angular.extend(options, uiTinymceConfig, expression);
5052
setTimeout(function () {
51-
elm.tinymce(options);
53+
tinymce.init(options);
5254
});
5355
}
5456
};

0 commit comments

Comments
 (0)