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
b897ce26
Commit
b897ce26
authored
May 13, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add api config
parent
655c0e4d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
14 deletions
+13
-14
cell/api.js
cell/api.js
+5
-6
common/apiBase.js
common/apiBase.js
+2
-2
slide/api.js
slide/api.js
+3
-3
word/api.js
word/api.js
+3
-3
No files found.
cell/api.js
View file @
b897ce26
...
...
@@ -33,23 +33,22 @@ var editor;
/**
*
* @param name
* @param inputName
* @param config
* @param eventsHandlers
* @constructor
* @returns {spreadsheet_api}
* @extends {AscCommon.baseEditorsApi}
*/
function
spreadsheet_api
(
name
,
inputName
,
eventsHandlers
)
{
spreadsheet_api
.
superclass
.
constructor
.
call
(
this
,
name
,
AscCommon
.
c_oEditorId
.
Spreadsheet
);
function
spreadsheet_api
(
config
)
{
spreadsheet_api
.
superclass
.
constructor
.
call
(
this
,
config
,
AscCommon
.
c_oEditorId
.
Spreadsheet
);
/************ private!!! **************/
this
.
topLineEditorName
=
inputName
;
this
.
topLineEditorName
=
config
[
'
id-input
'
]
||
''
;
this
.
topLineEditorElement
=
null
;
this
.
controller
=
null
;
this
.
handlers
=
new
AscCommonExcel
.
asc_CHandlersList
(
eventsHandlers
);
this
.
handlers
=
new
AscCommonExcel
.
asc_CHandlersList
();
// Вид печати
this
.
adjustPrint
=
null
;
...
...
common/apiBase.js
View file @
b897ce26
...
...
@@ -12,12 +12,12 @@ var c_oAscAsyncActionType = Asc.c_oAscAsyncActionType;
var
ASC_DOCS_API_USE_EMBEDDED_FONTS
=
"
@@ASC_DOCS_API_USE_EMBEDDED_FONTS
"
;
/** @constructor */
function
baseEditorsApi
(
name
,
editorId
)
{
function
baseEditorsApi
(
config
,
editorId
)
{
this
.
editorId
=
editorId
;
this
.
isLoadFullApi
=
false
;
this
.
openResult
=
null
;
this
.
HtmlElementName
=
name
;
this
.
HtmlElementName
=
config
[
'
id-view
'
]
||
''
;
this
.
HtmlElement
=
null
;
this
.
isMobileVersion
=
false
;
...
...
slide/api.js
View file @
b897ce26
...
...
@@ -394,13 +394,13 @@ CTablePropLook.prototype.put_BandVer = function(v) {this.BandVer = v;};
/**
*
* @param
name
* @param
config
* @constructor
* @extends {AscCommon.baseEditorsApi}
*/
function
asc_docs_api
(
name
)
function
asc_docs_api
(
config
)
{
asc_docs_api
.
superclass
.
constructor
.
call
(
this
,
name
,
AscCommon
.
c_oEditorId
.
Presentation
);
asc_docs_api
.
superclass
.
constructor
.
call
(
this
,
config
,
AscCommon
.
c_oEditorId
.
Presentation
);
/************ private!!! **************/
this
.
WordControl
=
null
;
...
...
word/api.js
View file @
b897ce26
...
...
@@ -196,13 +196,13 @@ CMailMergeSendData.prototype.put_UserId = function(v){this["userId"] = v;};
/**
*
* @param
name
* @param
config
* @constructor
* @extends {AscCommon.baseEditorsApi}
*/
function
asc_docs_api
(
name
)
function
asc_docs_api
(
config
)
{
asc_docs_api
.
superclass
.
constructor
.
call
(
this
,
name
,
AscCommon
.
c_oEditorId
.
Word
);
asc_docs_api
.
superclass
.
constructor
.
call
(
this
,
config
,
AscCommon
.
c_oEditorId
.
Word
);
if
(
window
[
"
AscDesktopEditor
"
])
{
...
...
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