MCFileManager:JS API/mcFileManager.edit
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: mcFileManager.edit
(Requires: 3.1)
[edit]
Summary
Opens the edit file dialog of the MCFileManager. This enables the user modify a specific file.
[edit]
Syntax
void mcFileManager.edit(<Object> s)
[edit]
Parameters
- s
- Name/Value object with settings.
[edit]
Options
- onsave
- Callback function to execute ones the contents is saved.
Generic options can be found in the JavaScript options section.
[edit]
Examples
mcFileManager.createDoc({
path : '{0}/somedoc.html',
visual_path : '/somedoc.html',
onsave : function(file) {
alert("URL: " + file.url);
}
});
[edit]
