Page MenuHomePhorge

file_editor.js
No OneTemporary

Size
580 B
Referenced Files
None
Subscribers
None

file_editor.js

function file_editor()
{
this.editable = true;
this.init = function(ed, mode)
{
this.editor = ace.edit(ed);
this.session = this.editor.getSession();
this.editor.focus();
this.editor.setReadOnly(true);
this.session.setMode('ace/mode/' + mode);
};
// switch editor into read-write mode
this.enable = function()
{
this.editor.setReadOnly(false);
};
// switch editor into read-only mode
this.disable = function()
{
this.editor.setReadOnly(true);
};
this.getContent = function()
{
return this.editor.getValue();
};
}

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 8, 4:13 PM (10 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1051470
Default Alt Text
file_editor.js (580 B)

Event Timeline