Closed moritzpflaum closed 7 years ago
LGTM, can we merge this?
Really need it... Still waiting...
This one is good. Waiting for it too.
also waiting
Need this PR merged if possible!
Waiting for this as well =)
Can you please squash this PR into one commit so I can get it merged in?
@deeg i have squashed it in new pull request https://github.com/angular-ui/ui-tinymce/pull/287
I made a plnkr showing the issue: http://plnkr.co/edit/R7oHmGcRkKz5ZZXSFo9h
And one showing it fixed: http://plnkr.co/edit/F1QJlRPN8M04n3yNCgm5
The tests fail because of the line beforeEach(module('ui.tinymce'));
which resets the variable generatedIds to zero before every test, resulting in duplicate ids in the test DOM. If it is replaced with something global, the tests pass. This should not happen in non-test use, I think. I just don't know how to tell jasmine to load the module only once.