feature(edit) add setValue

This commit is contained in:
coderaiser 2016-12-26 17:22:02 +02:00
parent 978b79f38a
commit 9da829723d

View file

@ -94,18 +94,27 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format;
if (error)
return Images.hide();
editor.setValueFirst(path, data);
setMsgChanged(name);
editor
.setModeForPath(name)
.setOption('fontSize', 16);
Edit.setValue(data, {
name: name,
path: path
});
CloudCmd.View.show(Element, ConfigView);
});
};
this.setValue = function(value, info) {
var path = info.path;
var name = info.name;
editor
.setValueFirst(path, value)
.setModeForPath(name)
.setOption('fontSize', 16);
setMsgChanged(name);
};
this.hide = function() {
CloudCmd.View.hide();
};