diff --git a/LuaPlayground/build/debug/main.js b/LuaPlayground/build/debug/main.js index 5ce093f..4ca7214 100644 --- a/LuaPlayground/build/debug/main.js +++ b/LuaPlayground/build/debug/main.js @@ -207,6 +207,7 @@ main() { this.datarea = this.find("editorea"); this.output = this.find("output"); + ace.config.set('basePath', '/scripts/ace'); this.editor = ace.edit(this.datarea); this.editor.setOptions({ enableBasicAutocompletion: true, diff --git a/LuaPlayground/build/debug/package.json b/LuaPlayground/build/debug/package.json index b52c9f3..e2119ba 100644 --- a/LuaPlayground/build/debug/package.json +++ b/LuaPlayground/build/debug/package.json @@ -6,7 +6,7 @@ "author": "Xuan Sang LEs", "email": "xsang.le@gmail.com" }, - "version":"0.0.1-a", + "version":"0.0.2-a", "category":"System", "iconclass":"fa fa-adn", "mimes":["none"] diff --git a/LuaPlayground/build/release/LuaPlayground.zip b/LuaPlayground/build/release/LuaPlayground.zip index 0087b14..2fdb240 100644 Binary files a/LuaPlayground/build/release/LuaPlayground.zip and b/LuaPlayground/build/release/LuaPlayground.zip differ diff --git a/LuaPlayground/coffees/main.coffee b/LuaPlayground/coffees/main.coffee index 73e27f8..f3c339b 100644 --- a/LuaPlayground/coffees/main.coffee +++ b/LuaPlayground/coffees/main.coffee @@ -149,6 +149,7 @@ class LuaPlayground extends this.OS.GUI.BaseApplication main: () -> @datarea = @find "editorea" @output = @find "output" + ace.config.set('basePath', '/scripts/ace') @.editor = ace.edit @datarea @.editor.setOptions { enableBasicAutocompletion: true, diff --git a/LuaPlayground/package.json b/LuaPlayground/package.json index b52c9f3..e2119ba 100644 --- a/LuaPlayground/package.json +++ b/LuaPlayground/package.json @@ -6,7 +6,7 @@ "author": "Xuan Sang LEs", "email": "xsang.le@gmail.com" }, - "version":"0.0.1-a", + "version":"0.0.2-a", "category":"System", "iconclass":"fa fa-adn", "mimes":["none"] diff --git a/TinyEditor/build/debug/main.js b/TinyEditor/build/debug/main.js index f2179be..bac3af2 100644 --- a/TinyEditor/build/debug/main.js +++ b/TinyEditor/build/debug/main.js @@ -18,7 +18,7 @@ this.bindKey("CTRL-S", () => { return this.saveFile(); }); - this.filehandle = this.args && this.args.length > 0 ? this.args[0].asFileHandle() : null; + this.filehandle = this.args && this.args.length > 0 ? this.args[0].path.asFileHandle() : null; $(this.editor).on('input', (e) => { if (this.filehandle.dirty === true) { return; diff --git a/TinyEditor/build/debug/package.json b/TinyEditor/build/debug/package.json index 7889034..e49e5c6 100644 --- a/TinyEditor/build/debug/package.json +++ b/TinyEditor/build/debug/package.json @@ -6,7 +6,7 @@ "author": "Xuan Sang LE", "email": "xsang.le@gmail.com" }, - "version":"0.0.1-a", + "version":"0.0.2-a", "category":"Other", "iconclass":"fa fa-adn", "mimes":["text/.*"] diff --git a/TinyEditor/build/release/TinyEditor.zip b/TinyEditor/build/release/TinyEditor.zip index a08cf32..f5e6633 100644 Binary files a/TinyEditor/build/release/TinyEditor.zip and b/TinyEditor/build/release/TinyEditor.zip differ diff --git a/TinyEditor/coffees/main.coffee b/TinyEditor/coffees/main.coffee index dd394a7..72fa7ac 100644 --- a/TinyEditor/coffees/main.coffee +++ b/TinyEditor/coffees/main.coffee @@ -7,7 +7,7 @@ class TinyEditor extends this.OS.GUI.BaseApplication @bindKey "ALT-N", () => @newFile() @bindKey "ALT-O", () => @openFile() @bindKey "CTRL-S", () => @saveFile() - @filehandle = if @args and @args.length > 0 then @args[0].asFileHandle() else null + @filehandle = if @args and @args.length > 0 then @args[0].path.asFileHandle() else null $(@editor).on 'input', (e) => return if @filehandle.dirty is true @filehandle.dirty = true diff --git a/TinyEditor/package.json b/TinyEditor/package.json index 7889034..e49e5c6 100644 --- a/TinyEditor/package.json +++ b/TinyEditor/package.json @@ -6,7 +6,7 @@ "author": "Xuan Sang LE", "email": "xsang.le@gmail.com" }, - "version":"0.0.1-a", + "version":"0.0.2-a", "category":"Other", "iconclass":"fa fa-adn", "mimes":["text/.*"]