Skip to content

Commit 62db8a8

Browse files
committed
Fix TinyMCE IDs for Protractor testing
1 parent 10d584d commit 62db8a8

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
@@ -51,8 +51,10 @@ angular.module('ui.tinymce', [])
5151
}
5252

5353
// fetch a unique ID from the service
54-
var uniqueId = uiTinymceService.getUniqueId();
55-
attrs.$set('id', uniqueId);
54+
if (!attrs.id) {
55+
var uniqueId = uiTinymceService.getUniqueId();
56+
attrs.$set('id', uniqueId);
57+
}
5658

5759
expression = {};
5860

0 commit comments

Comments
 (0)