From d22d810664ee19ca30620807e3fd26360a279de4 Mon Sep 17 00:00:00 2001 From: Bryan Date: Thu, 26 Feb 2015 20:31:53 -0500 Subject: [PATCH] remove debug no-ops and don't call init on load. closes #410 --- .../apps/wysihtml5/static/wysihtml5/init.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/karmaworld/apps/wysihtml5/static/wysihtml5/init.js b/karmaworld/apps/wysihtml5/static/wysihtml5/init.js index 7679bdb..6e7a17e 100644 --- a/karmaworld/apps/wysihtml5/static/wysihtml5/init.js +++ b/karmaworld/apps/wysihtml5/static/wysihtml5/init.js @@ -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); -})(); -- 2.25.1