Commit 7a3d838b authored by Oleg Korshul's avatar Oleg Korshul

desktop reporter view. developing...

parent fde90b23
......@@ -837,10 +837,13 @@ function CEditorPage(api)
window.onkeydown = this.onKeyDown;
window.onkeyup = this.onKeyUp;
if ( window.attachEvent )
window.attachEvent('onmessage', this.m_oApi.DemonstrationToReporterMessages);
else
window.addEventListener('message', this.m_oApi.DemonstrationToReporterMessages, false);
if (!window["AscDesktopEditor"])
{
if (window.attachEvent)
window.attachEvent('onmessage', this.m_oApi.DemonstrationToReporterMessages);
else
window.addEventListener('message', this.m_oApi.DemonstrationToReporterMessages, false);
}
}
// --------------------------------------------------------------------------
......
......@@ -282,4 +282,28 @@ Asc['asc_docs_api'].prototype.asc_setAdvancedOptions = function(idOption, option
window["AscDesktopEditor"]["SetAdvancedOptions"](_param);
}
};
Asc['asc_docs_api'].prototype["asc_setAdvancedOptions"] = Asc['asc_docs_api'].prototype.asc_setAdvancedOptions;
\ No newline at end of file
Asc['asc_docs_api'].prototype["asc_setAdvancedOptions"] = Asc['asc_docs_api'].prototype.asc_setAdvancedOptions;
Asc['asc_docs_api'].prototype.DemonstrationReporterStart = function(startObject)
{
this.reporterStartObject = startObject;
window["AscDesktopEditor"]["startReporter"](window.location.ref);
};
Asc['asc_docs_api'].prototype.DemonstrationReporterEnd = function()
{
window["AscDesktopEditor"]["endReporter"]();
};
Asc['asc_docs_api'].prototype.sendToReporter = function(value)
{
window["AscDesktopEditor"]["sendToReporter"](value);
};
Asc['asc_docs_api'].prototype.sendFromReporter = function(value)
{
window["AscDesktopEditor"]["sendFromReporter"](value);
};
Asc['asc_docs_api'].prototype["sendFromReporter"] = Asc['asc_docs_api'].prototype.sendFromReporter;
\ No newline at end of file
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