From eff5af78d6bde46ed6e4f7b013b85c60d16d92de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Maruszczyk?= Date: Fri, 29 Mar 2019 12:49:53 +0100 Subject: [PATCH] Fix for more entropy in ids. Sometimes dot was a partof id. --- plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.js b/plugin.js index c08979e..fbe4c43 100755 --- a/plugin.js +++ b/plugin.js @@ -62,7 +62,7 @@ CKEDITOR.plugins.add('collapsibleItem', { } var uniqueIdentifier = [ (new Date()).getTime(), - ('' + 1e6 * Math.random()).substring(0, 6) + Math.floor(Math.random() * (1e6 - 1e5 - 1)) + 1e5 ].join('_'); this.setData('accordionId', accordionid); this.setData('itemId', 'Collapsible' + uniqueIdentifier);