angular-ui / ui-tinymce

AngularUI wrapper for TinyMCE
MIT License
488 stars 371 forks source link

Fix for multiple instances being given same ID #308

Closed kmchugh closed 7 years ago

kmchugh commented 7 years ago

In instances where multiple tinymce instances are being created I've found that on occasion the generated identity is the same due to using the date. With this fix it ensures that even if the code is run in parallel and the date returned is exactly the same, the id generated will still be different.