aboutsummaryrefslogtreecommitdiffstats
path: root/library/ace/ext-linking.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/ace/ext-linking.js')
-rw-r--r--library/ace/ext-linking.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/ace/ext-linking.js b/library/ace/ext-linking.js
new file mode 100644
index 000000000..69f87918f
--- /dev/null
+++ b/library/ace/ext-linking.js
@@ -0,0 +1,5 @@
+ace.define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"],function(e,t,n){function i(e){var t=e.editor,n=e.getAccelKey();if(n){var t=e.editor,r=e.getDocumentPosition(),i=t.session,s=i.getTokenAt(r.row,r.column);t._emit("linkHover",{position:r,token:s})}}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}})});
+ (function() {
+ ace.require(["ace/ext/linking"], function() {});
+ })();
+ \ No newline at end of file