From f774c2584f9d2a6c69ddad065b688dca2be7aaa6 Mon Sep 17 00:00:00 2001 From: John McLear Date: Fri, 6 Nov 2015 13:21:25 +0000 Subject: [PATCH] paste hook and class for editorcontainer --- src/static/js/ace2_inner.js | 7 +++++++ src/templates/pad.html | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 8c03fa66..220136af 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -4996,6 +4996,13 @@ function Ace2Inner(){ if(e.target.a || e.target.localName === "a"){ e.preventDefault(); } + + // Call paste hook + hooks.callAll('acePaste', { + editorInfo: editorInfo, + rep: rep, + documentAttributeManager: documentAttributeManager + }); }) // CompositionEvent is not implemented below IE version 8 diff --git a/src/templates/pad.html b/src/templates/pad.html index 5311b320..84f9fef8 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -100,7 +100,7 @@
-
+

You need a password to access this pad