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

desktop reporter view. developing...

parent fde90b23
......@@ -837,11 +837,14 @@ function CEditorPage(api)
window.onkeydown = this.onKeyDown;
window.onkeyup = this.onKeyUp;
if ( window.attachEvent )
if (!window["AscDesktopEditor"])
{
if (window.attachEvent)
window.attachEvent('onmessage', this.m_oApi.DemonstrationToReporterMessages);
else
window.addEventListener('message', this.m_oApi.DemonstrationToReporterMessages, false);
}
}
// --------------------------------------------------------------------------
this.m_oDrawingDocument.TargetHtmlElement = document.getElementById('id_target_cursor');
......
......@@ -283,3 +283,27 @@ Asc['asc_docs_api'].prototype.asc_setAdvancedOptions = function(idOption, option
}
};
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