Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8196827
file_editor.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
580 B
Referenced Files
None
Subscribers
None
file_editor.js
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 8, 4:13 PM (13 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1051470
Default Alt Text
file_editor.js (580 B)
Attached To
Mode
R26 chwala
Attached
Detach File
Event Timeline
Log In to Comment