From eb14200c3cefd5dff5ccd1f5e3f0b40161e57412 Mon Sep 17 00:00:00 2001 From: Ground0 Date: Wed, 24 Jul 2019 09:19:34 +0200 Subject: [PATCH 1/2] Init add cdn/local option and version (Tested with 1.4.5) --- AceEditor.sbi | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/AceEditor.sbi b/AceEditor.sbi index 39e149b..c38b900 100644 --- a/AceEditor.sbi +++ b/AceEditor.sbi @@ -2,9 +2,18 @@ EnableExplicit + Enumeration + #cdnjs ;Default + #PageCDN + #locInc + #locIncAce + #locAce + EndEnumeration + + Global IsInitialized - Declare Init(Callback) + Declare Init(Callback, Pluginloadplace = #cdnjs, Version.s = "1.2.6") Declare BindGadget(Gadget) @@ -41,9 +50,23 @@ Module AceEditor ! var editor = selector.data("editor"); EndMacro - Procedure Init(Callback) + Procedure Init(Callback, Pluginloadplace = #cdnjs, Version.s = "1.2.6") + Protected AceUrl.s - ! require(["https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.6/ace.js"], + Select Pluginloadplace + Case #PageCDN + AceUrl = "https://pagecdn.io/lib/ace/" + Case #locInc + AceUrl = "inc/" + Case #locIncAce + AceUrl = "inc/ace/" + Case #locAce + AceUrl = "ace/" + Default ; Case #cdnjs ist Default + AceUrl = "https://cdnjs.cloudflare.com/ajax/libs/ace/" + EndSelect + Debug AceUrl + Version + "/ace.js" + ! require([v_aceurl + v_version + "/ace.js"], ! function() { IsInitialized = #True ! v_callback(); @@ -278,3 +301,14 @@ Module AceEditor EndProcedure EndModule + +; IDE Options = SpiderBasic 2.21 (Linux - x64) +; CursorPosition = 61 +; FirstLine = 35 +; Folding = ---- +; WindowTheme = flat +; GadgetTheme = flat +; iOSAppOrientation = 0 +; AndroidAppOrientation = 0 +; EnableXP +; CompileSourceDirectory \ No newline at end of file From a4083793114f17f4f741451092af87e79fa782a9 Mon Sep 17 00:00:00 2001 From: Ground0 Date: Wed, 24 Jul 2019 09:22:36 +0200 Subject: [PATCH 2/2] Remove spiderbasic config from file --- AceEditor.sbi | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/AceEditor.sbi b/AceEditor.sbi index c38b900..9862ad1 100644 --- a/AceEditor.sbi +++ b/AceEditor.sbi @@ -301,14 +301,3 @@ Module AceEditor EndProcedure EndModule - -; IDE Options = SpiderBasic 2.21 (Linux - x64) -; CursorPosition = 61 -; FirstLine = 35 -; Folding = ---- -; WindowTheme = flat -; GadgetTheme = flat -; iOSAppOrientation = 0 -; AndroidAppOrientation = 0 -; EnableXP -; CompileSourceDirectory \ No newline at end of file