This commit is contained in:
lxsang
2018-07-25 14:20:13 +00:00
parent e54a33605a
commit d8d56ffef5
4 changed files with 6 additions and 8 deletions

View File

@ -10,7 +10,6 @@
var me;
me = this;
this.editor = this.find("editor");
this.stbar = this.find("statusbar");
this.bindKey("ALT-N", function() {
return me.newFile();
});
@ -20,7 +19,7 @@
this.bindKey("CTRL-S", function() {
return me.saveFile();
});
this.filehandler = null;
this.filehandler = this.args && this.args.length > 0 ? this.args[0].asFileHandler() : null;
$(this.editor).on('input', function(e) {
if (me.filehandler.dirty === true) {
return;
@ -74,7 +73,7 @@
return this.read();
}
openFile(fi) {
openFile() {
var me;
me = this;
return this.openDialog("FileDiaLog", function(dir, fname, d) {

View File

@ -9,5 +9,5 @@
"version":"0.0.1-a",
"category":"Other",
"iconclass":"fa fa-adn",
"mimes":["none"]
"mimes":["text/.*"]
}