diff --git a/src/browser.js b/src/browser.js index 7fa7556..af8cfbb 100644 --- a/src/browser.js +++ b/src/browser.js @@ -380,7 +380,7 @@ wysihtml5.browser = (function() { It is on window but cannot return text/html Should actually check for clipboardData on paste event, but cannot in firefox */ - supportsModenPaste: function () { + supportsModernPaste: function () { return !("clipboardData" in window); }, diff --git a/src/editor.js b/src/editor.js index d310d43..9d3d65a 100644 --- a/src/editor.js +++ b/src/editor.js @@ -218,7 +218,7 @@ var oldHtml, cleanHtml; - if (wysihtml5.browser.supportsModenPaste()) { + if (wysihtml5.browser.supportsModernPaste()) { this.on("paste:composer", function(event) { event.preventDefault(); oldHtml = wysihtml5.dom.getPastedHtml(event);