remove debug no-ops and don't call init on load. closes #410
authorBryan <btbonval@gmail.com>
Fri, 27 Feb 2015 01:31:53 +0000 (20:31 -0500)
committerBryan <btbonval@gmail.com>
Fri, 27 Feb 2015 01:31:53 +0000 (20:31 -0500)
karmaworld/apps/wysihtml5/static/wysihtml5/init.js

index 7679bdb54877b3c0d8a92f4300c2aa499d5a9c1a..6e7a17e147c5aaef142021538e16f24890d4d16b 100644 (file)
@@ -3,21 +3,5 @@ function initWysihtml5(element) {
     toolbar: element.id + "-toolbar",
     parserRules: wysihtml5ParserRules
   });
-  editor.on("load", function() {
-  });
-  editor.on("change", function() {
-    console.log("EDITOR", editor.value);
-    element.value = editor.value;
-    console.log("ELEMENT", element.value);
-  });
   return editor;
 }
-
-(function() {
-  var elements = document.querySelectorAll("[role='wysihtml5-rich-text']");
-  var elementArr = [];
-  for (var i = 0; i < elements.length; i++) {
-    elementArr.push(elements[i]);
-  }
-  elementArr.forEach(initWysihtml5);
-})();