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

Commit 32473bf

Browse files
zhouzideeg
authored andcommitted
fix(priority): lower priority to make it work with ngIf
fixes #241 closes #242
1 parent 9f5276f commit 32473bf

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

dist/tinymce.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tinymce.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ angular.module('ui.tinymce', [])
1313

1414
return {
1515
require: ['ngModel', '^?form'],
16-
priority: 999,
16+
priority: 599,
1717
link: function(scope, element, attrs, ctrls) {
1818
if (!$window.tinymce) {
1919
return;

test/tinymce.spec.js

+5
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,9 @@ describe('uiTinymce', function () {
148148
});
149149
});*/
150150

151+
it('should work with the ng-if directive', function () {
152+
expect(function () {
153+
$compile('<textarea ng-if="show" ui-tinymce data-ng-model="foo"></textarea>')(scope);
154+
}).not.toThrow();
155+
});
151156
});

0 commit comments

Comments
 (0)