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

Conversation

@moritzpflaum
Copy link

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.

This makes the tests pass again because the different tests don't dispose each other anymore (they did that by all using 'ui-tinymce-0' and removing the tinymce instance after each test, which led to interference with still running tests.
@timelf123
Copy link

timelf123 commented Jul 21, 2016

LGTM, can we merge this?

@Nickproger
Copy link

Really need it... Still waiting...

@hajderr
Copy link

hajderr commented Aug 15, 2016

This one is good. Waiting for it too.

@ivorobkalo
Copy link

also waiting

@mcblum
Copy link

mcblum commented Aug 30, 2016

Need this PR merged if possible!

@Edvardoh
Copy link

Waiting for this as well =)

@deeg
Copy link
Contributor

deeg commented Aug 31, 2016

Can you please squash this PR into one commit so I can get it merged in?

}
tinymce.init(options);
toggleDisable(scope.$eval(attrs.ngDisabled));
var maybeInitPromise = tinymce.init(options); // newer versions of tinymce return a promise

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tabs at the beginning here, messes up the indentation.

@asaarnak
Copy link
Contributor

@deeg i have squashed it in new pull request #287

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants