aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Guzman2012-05-17 16:04:57 -0700
committerEric Guzman2012-05-17 16:04:57 -0700
commit4e23fee56acb23bf36e6638641dfa5071e2f458a (patch)
tree8cb045ef7453dc96a32491dd338eb9ea0e5c2c56
parent4ea199725275abcb6b2bb9bb71518e84626db94c (diff)
downloadninja-4e23fee56acb23bf36e6638641dfa5071e2f458a.tar.gz
Editable - remove formatting on paste
-rw-r--r--js/components/editable.reel/editable.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/components/editable.reel/editable.js b/js/components/editable.reel/editable.js
index b7fdd707..b385d916 100644
--- a/js/components/editable.reel/editable.js
+++ b/js/components/editable.reel/editable.js
@@ -229,6 +229,8 @@ exports.Editable = Montage.create(Component, {
229 }, 229 },
230 handlePaste : { 230 handlePaste : {
231 value: function(e) { 231 value: function(e) {
232 e.preventDefault();
233 document.execCommand('insertHTML', null, e._event.clipboardData.getData("Text"));
232 this._sendEvent('paste', e); 234 this._sendEvent('paste', e);
233 } 235 }
234 }, 236 },