Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
a9bd1835
Commit
a9bd1835
authored
Jul 27, 2011
by
François Billioud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the ommited AlohaInterface
parent
bb2fbc28
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
UNGProject/js/text-editor.js
UNGProject/js/text-editor.js
+20
-1
UNGProject/js/theme.js
UNGProject/js/theme.js
+2
-0
UNGProject/js/tools.js
UNGProject/js/tools.js
+1
-1
No files found.
UNGProject/js/text-editor.js
View file @
a9bd1835
...
...
@@ -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
...
...
UNGProject/js/theme.js
View file @
a9bd1835
...
...
@@ -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
...
...
UNGProject/js/tools.js
View file @
a9bd1835
...
...
@@ -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
();}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment