Commit a9bd1835 authored by François Billioud's avatar François Billioud

add the ommited AlohaInterface

parent bb2fbc28
......@@ -27,7 +27,26 @@ var Xinha = function() {
this.load();
}
var AlohaInterface = function() {
this.name = "Aloha";
this.load = function() {
includeJS("aloha/aloha/plugins/com.gentics.aloha.plugins.Format/plugin.js");
includeJS("aloha/aloha/plugins/com.gentics.aloha.plugins.Table/plugin.js");
includeJS("aloha/aloha/plugins/com.gentics.aloha.plugins.List/plugin.js");
includeJS("aloha/aloha/plugins/com.gentics.aloha.plugins.Link/plugin.js");
$("div#page_content div.input").html("<div id='aloha_editable'>test</div>");
$("#aloha_editable").css("min-height","15em").css("border","5px solid #3399FF").css("overflow","auto");
$("#aloha_editable").aloha();
}
this.saveEdition = function() {
getCurrentDocument().saveEdition(GENTICS.Aloha.editables[0].getContents());
}
this.loadContentFromDocument = function(doc) {
var setText = function() {$("div.aloha_editable").html(doc.getContent());}
tryUntilSucceed(setText);
}
this.load();
}
/**
* Text documents
......
......@@ -150,6 +150,8 @@ var User = function(arg) {
if(arg) {
this.load(arg);
if(window.DocumentList) {this.documentList = new DocumentList(arg.documentList);}
if(window.LabelList) {this.labelList = new LabelList(arg.labelList);}
if(window.GroupList) {this.groupList = new GroupList(arg.groupList);}
}
else {
this.name = "UNG";//default name
......
......@@ -236,7 +236,7 @@ errorMessage = function(message,object) {
}
/**
* returns the current date
* returns the current date (number of ms since 1/1/1970 at 12:00 AM)
*/
currentTime = function() {return Date.now();}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment