Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
sdkjs
Commits
ca15d122
Commit
ca15d122
authored
8 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init base api in derived
parent
3f2b9478
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
+13
-8
cell/api.js
cell/api.js
+1
-0
common/apiBase.js
common/apiBase.js
+7
-7
common/editorscommon.js
common/editorscommon.js
+1
-1
slide/api.js
slide/api.js
+2
-0
word/api.js
word/api.js
+2
-0
No files found.
cell/api.js
View file @
ca15d122
...
...
@@ -133,6 +133,7 @@ var editor;
};
spreadsheet_api
.
prototype
.
_init
=
function
()
{
spreadsheet_api
.
superclass
.
_init
.
call
(
this
);
this
.
topLineEditorElement
=
document
.
getElementById
(
this
.
topLineEditorName
);
// ToDo нужно ли это
asc
[
'
editor
'
]
=
(
asc
[
'
editor
'
]
||
this
);
...
...
This diff is collapsed.
Click to expand it.
common/apiBase.js
View file @
ca15d122
...
...
@@ -136,16 +136,10 @@ function baseEditorsApi(name, editorId) {
this
.
fCurCallback
=
null
;
this
.
_baseInit
();
return
this
;
}
baseEditorsApi
.
prototype
.
_
baseI
nit
=
function
()
{
baseEditorsApi
.
prototype
.
_
i
nit
=
function
()
{
var
t
=
this
;
AscCommon
.
loadSdk
(
this
.
_editorNameById
(),
function
()
{
t
.
isLoadFullApi
=
true
;
t
.
_onEndLoadSdk
();
t
.
onEndLoadFile
(
null
);
});
//Asc.editor = Asc['editor'] = AscCommon['editor'] = AscCommon.editor = this; // ToDo сделать это!
this
.
HtmlElement
=
document
.
getElementById
(
this
.
HtmlElementName
);
...
...
@@ -163,6 +157,12 @@ baseEditorsApi.prototype._baseInit = function() {
AscCommon
.
InitDragAndDrop
(
this
.
HtmlElement
,
function
(
error
,
files
)
{
t
.
_uploadCallback
(
error
,
files
);
});
AscCommon
.
loadSdk
(
this
.
_editorNameById
(),
function
()
{
t
.
isLoadFullApi
=
true
;
t
.
_onEndLoadSdk
();
t
.
onEndLoadFile
(
null
);
});
};
baseEditorsApi
.
prototype
.
_editorNameById
=
function
()
{
var
res
=
''
;
...
...
This diff is collapsed.
Click to expand it.
common/editorscommon.js
View file @
ca15d122
...
...
@@ -2693,7 +2693,7 @@ CUserCacheColor.prototype.init = function(nColor) {
}
function
loadSdk
(
sdkName
,
callback
)
{
if
(
window
[
'
AscNotLoadAllScript
'
])
{
setTimeout
(
callback
,
1
);
callback
(
);
}
else
{
loadScript
(
'
./../../../../sdkjs/
'
+
sdkName
+
'
/sdk-all.js
'
,
callback
);
}
...
...
This diff is collapsed.
Click to expand it.
slide/api.js
View file @
ca15d122
...
...
@@ -140,6 +140,8 @@ function asc_docs_api(name)
if
(
window
[
"
NATIVE_EDITOR_ENJINE
"
])
editor
=
window
.
editor
;
}
this
.
_init
();
}
AscCommon
.
extendClass
(
asc_docs_api
,
AscCommon
.
baseEditorsApi
);
...
...
This diff is collapsed.
Click to expand it.
word/api.js
View file @
ca15d122
...
...
@@ -332,6 +332,8 @@ function asc_docs_api(name)
this
.
RevisionChangesStack
=
[];
//g_clipboardBase.Init(this);
this
.
_init
();
}
AscCommon
.
extendClass
(
asc_docs_api
,
AscCommon
.
baseEditorsApi
);
...
...
This diff is collapsed.
Click to expand it.
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