MCFileManager:JS API/mcFileManager.edit

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: mcFileManager.edit

(Requires: 3.1)

Summary

Opens the edit file dialog of the MCFileManager. This enables the user modify a specific file.

Syntax

void mcFileManager.edit(<Object> s)

Parameters

s
Name/Value object with settings.

Options

onsave
Callback function to execute ones the contents is saved.

Generic options can be found in the JavaScript options section.

Examples

mcFileManager.createDoc({
    path : '{0}/somedoc.html',
    visual_path : '/somedoc.html',
    onsave : function(file) {
       alert("URL: " + file.url);
    }
});

See also

Personal tools