From 074c8ca2a16bc4849e8ecea5a123d4d9a2995898 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 7 Nov 2017 20:44:10 -0500 Subject: initial commit --- htdocs/js/ace/ext-linking.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 htdocs/js/ace/ext-linking.js (limited to 'htdocs/js/ace/ext-linking.js') diff --git a/htdocs/js/ace/ext-linking.js b/htdocs/js/ace/ext-linking.js new file mode 100644 index 0000000..0f09817 --- /dev/null +++ b/htdocs/js/ace/ext-linking.js @@ -0,0 +1,5 @@ +define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"],function(e,t,n){function i(e){var n=e.editor,r=e.getAccelKey();if(r){var n=e.editor,i=e.getDocumentPosition(),s=n.session,o=s.getTokenAt(i.row,i.column);t.previousLinkingHover&&t.previousLinkingHover!=o&&n._emit("linkHoverOut"),n._emit("linkHover",{position:i,token:o}),t.previousLinkingHover=o}else t.previousLinkingHover&&(n._emit("linkHoverOut"),t.previousLinkingHover=!1)}function s(e){var t=e.getAccelKey(),n=e.getButton();if(n==0&&t){var r=e.editor,i=e.getDocumentPosition(),s=r.session,o=s.getTokenAt(i.row,i.column);r._emit("linkClick",{position:i,token:o})}}var r=e("ace/editor").Editor;e("../config").defineOptions(r.prototype,"editor",{enableLinking:{set:function(e){e?(this.on("click",s),this.on("mousemove",i)):(this.off("click",s),this.off("mousemove",i))},value:!1}}),t.previousLinkingHover=!1}); + (function() { + window.require(["ace/ext/linking"], function() {}); + })(); + \ No newline at end of file -- cgit v1.2.3