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
2e11408e
Commit
2e11408e
authored
May 10, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init base api in derived
parent
7f7c6f78
Changes
5
Hide 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 @
2e11408e
...
@@ -109,6 +109,7 @@ var editor;
...
@@ -109,6 +109,7 @@ var editor;
};
};
spreadsheet_api
.
prototype
.
_init
=
function
()
{
spreadsheet_api
.
prototype
.
_init
=
function
()
{
spreadsheet_api
.
superclass
.
_init
.
call
(
this
);
this
.
topLineEditorElement
=
document
.
getElementById
(
this
.
topLineEditorName
);
this
.
topLineEditorElement
=
document
.
getElementById
(
this
.
topLineEditorName
);
// ToDo нужно ли это
// ToDo нужно ли это
asc
[
'
editor
'
]
=
(
asc
[
'
editor
'
]
||
this
);
asc
[
'
editor
'
]
=
(
asc
[
'
editor
'
]
||
this
);
...
...
common/apiBase.js
View file @
2e11408e
...
@@ -112,16 +112,10 @@ function baseEditorsApi(name, editorId) {
...
@@ -112,16 +112,10 @@ function baseEditorsApi(name, editorId) {
this
.
fCurCallback
=
null
;
this
.
fCurCallback
=
null
;
this
.
_baseInit
();
return
this
;
return
this
;
}
}
baseEditorsApi
.
prototype
.
_
baseI
nit
=
function
()
{
baseEditorsApi
.
prototype
.
_
i
nit
=
function
()
{
var
t
=
this
;
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 сделать это!
//Asc.editor = Asc['editor'] = AscCommon['editor'] = AscCommon.editor = this; // ToDo сделать это!
this
.
HtmlElement
=
document
.
getElementById
(
this
.
HtmlElementName
);
this
.
HtmlElement
=
document
.
getElementById
(
this
.
HtmlElementName
);
...
@@ -139,6 +133,12 @@ baseEditorsApi.prototype._baseInit = function() {
...
@@ -139,6 +133,12 @@ baseEditorsApi.prototype._baseInit = function() {
AscCommon
.
InitDragAndDrop
(
this
.
HtmlElement
,
function
(
error
,
files
)
{
AscCommon
.
InitDragAndDrop
(
this
.
HtmlElement
,
function
(
error
,
files
)
{
t
.
_uploadCallback
(
error
,
files
);
t
.
_uploadCallback
(
error
,
files
);
});
});
AscCommon
.
loadSdk
(
this
.
_editorNameById
(),
function
()
{
t
.
isLoadFullApi
=
true
;
t
.
_onEndLoadSdk
();
t
.
onEndLoadFile
(
null
);
});
};
};
baseEditorsApi
.
prototype
.
_editorNameById
=
function
()
{
baseEditorsApi
.
prototype
.
_editorNameById
=
function
()
{
var
res
=
''
;
var
res
=
''
;
...
...
common/editorscommon.js
View file @
2e11408e
...
@@ -2669,7 +2669,7 @@ CUserCacheColor.prototype.init = function(nColor) {
...
@@ -2669,7 +2669,7 @@ CUserCacheColor.prototype.init = function(nColor) {
}
}
function
loadSdk
(
sdkName
,
callback
)
{
function
loadSdk
(
sdkName
,
callback
)
{
if
(
window
[
'
AscNotLoadAllScript
'
])
{
if
(
window
[
'
AscNotLoadAllScript
'
])
{
setTimeout
(
callback
,
1
);
callback
(
);
}
else
{
}
else
{
loadScript
(
'
./../../../../sdkjs/
'
+
sdkName
+
'
/sdk-all.js
'
,
callback
);
loadScript
(
'
./../../../../sdkjs/
'
+
sdkName
+
'
/sdk-all.js
'
,
callback
);
}
}
...
...
slide/api.js
View file @
2e11408e
...
@@ -116,6 +116,8 @@ function asc_docs_api(name)
...
@@ -116,6 +116,8 @@ function asc_docs_api(name)
if
(
window
[
"
NATIVE_EDITOR_ENJINE
"
])
if
(
window
[
"
NATIVE_EDITOR_ENJINE
"
])
editor
=
window
.
editor
;
editor
=
window
.
editor
;
}
}
this
.
_init
();
}
}
AscCommon
.
extendClass
(
asc_docs_api
,
AscCommon
.
baseEditorsApi
);
AscCommon
.
extendClass
(
asc_docs_api
,
AscCommon
.
baseEditorsApi
);
...
...
word/api.js
View file @
2e11408e
...
@@ -308,6 +308,8 @@ function asc_docs_api(name)
...
@@ -308,6 +308,8 @@ function asc_docs_api(name)
this
.
RevisionChangesStack
=
[];
this
.
RevisionChangesStack
=
[];
//g_clipboardBase.Init(this);
//g_clipboardBase.Init(this);
this
.
_init
();
}
}
AscCommon
.
extendClass
(
asc_docs_api
,
AscCommon
.
baseEditorsApi
);
AscCommon
.
extendClass
(
asc_docs_api
,
AscCommon
.
baseEditorsApi
);
...
...
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