Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
5158b47a
Commit
5158b47a
authored
May 10, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flat_desine before create api
parent
aead32ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+1
-1
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+1
-2
No files found.
apps/documenteditor/main/app/controller/Main.js
View file @
5158b47a
...
...
@@ -111,6 +111,7 @@ define([
// Initialize api
window
[
"
flat_desine
"
]
=
true
;
this
.
api
=
new
Asc
.
asc_docs_api
(
"
editor_sdk
"
);
if
(
this
.
api
){
...
...
@@ -119,7 +120,6 @@ define([
case
'
1
'
:
this
.
api
.
SetFontRenderingMode
(
1
);
break
;
case
'
2
'
:
this
.
api
.
SetFontRenderingMode
(
2
);
break
;
}
window
[
"
flat_desine
"
]
=
true
;
this
.
api
.
asc_registerCallback
(
'
asc_onError
'
,
_
.
bind
(
this
.
onError
,
this
));
this
.
api
.
asc_registerCallback
(
'
asc_onDocumentContentReady
'
,
_
.
bind
(
this
.
onDocumentContentReady
,
this
));
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
5158b47a
...
...
@@ -105,11 +105,10 @@ define([
// Initialize api
window
[
"
flat_desine
"
]
=
true
;
this
.
api
=
new
Asc
.
asc_docs_api
(
"
editor_sdk
"
);
if
(
this
.
api
){
window
[
"
flat_desine
"
]
=
true
;
this
.
api
.
CreateComponents
();
this
.
api
.
SetDrawingFreeze
(
true
);
this
.
api
.
SetThemesPath
(
"
../../../../sdkjs/slide/themes/
"
);
...
...
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