Commit b897ce26 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add api config

parent 655c0e4d
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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"])
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment