Add id to decorateCooked API call

Add id to decorateCooked API call

diff --git a/assets/javascripts/initializers/spoiler-alert.js.es6 b/assets/javascripts/initializers/spoiler-alert.js.es6
index 928534a..11870cb 100644
--- a/assets/javascripts/initializers/spoiler-alert.js.es6
+++ b/assets/javascripts/initializers/spoiler-alert.js.es6
@@ -10,7 +10,7 @@ function spoil($elem) {
 }
 
 function initializeSpoiler(api) {
-  api.decorateCooked(spoil);
+  api.decorateCooked(spoil, { id: "spoiler-alert" });
 
   api.addToolbarPopupMenuOptionsCallback(() => {
     return {

GitHub sha: 98695173

1 Like