new Editor()
- Description:
Code editor rendering
Methods
changed()
- Description:
Change event on tab
compare(left, right, save, options)
- Description:
Compare sources with 2 ACE editors https://github.com/ace-diff/ace-diff
Parameters:
Name | Type | Description |
---|---|---|
left |
Object | left editor parameters { content, editable, copyLinkEnabled... } |
right |
Object | right editor parameters |
save |
function | optional callback(src) to apply changes in caller |
options |
Object | optional ace-diff options |
display(ctn, p, cbk)
- Description:
Display the editor form
Parameters:
Name | Type | Description |
---|---|---|
ctn |
jQuery | container |
p |
Object | optional parameters |
cbk |
function | optional callback |
explorer(ctn, modules)
- Description:
Source explorer
Parameters:
Name | Type | Description |
---|---|---|
ctn |
jQuery | Container |
modules |
Object | list of modules/object/doc [{ id, module, open, items:[{ object, label, field, open, list:[{ id, label, docId }] }] }] |
formatActive()
- Description:
Format active tab
openAce(key, x)
- Description:
Ace editor
Parameters:
Name | Type | Description |
---|---|---|
key |
string | tab unique key |
x |
Object | tab definition and db source item {tab, item} |
openActive()
- Description:
Open active object
save(e, cbk, log)
- Description:
Save a tab
Parameters:
Name | Type | Description |
---|---|---|
e |
Object | tab definition |
cbk |
function | optional callback |
log |
Object | save all context to return errors |
saveActive()
- Description:
Save active tab
saveAll()
- Description:
Save all tabs