Charta now supports the File binding that enables editing of external files from within Charta.
The binding File has been introduced in Charta. The object supports the following three members:
| Name | Type | Description |
|---|---|---|
| Path | Text | File path without file name and including trailing slash |
| Name | Text | File name without file path |
| Media type | Text | MIME type of the file contents, needs not to be registered with IANA |
When viewing File objects from the user interface, Charta tries to create an appropriate editor associated with the media type for the file. Currently the following media types are supported:
| Media type | Description | IANA |
|---|---|---|
| application/javascript | Allows editing of Javascript files | Yes |
| application/pascal | Allows editing of pascal units | No |
| application/mysql | Allows editing of SQL files that use the MySQL dialect | No |
| application/xml | Allows editing of XML files | Yes |
| text/plain | Allows editing of plain text files | Yes |
| text/css | Allows editing of Cascading Style Sheets files | Yes |
| executable/exe | Allows exploring the contents of EXE files | No |
| executable/dll | Allows exploring the contents of DLL files | No |
| executable/lib | Allows exploring the contents of LIB files | No |
