Commit 29cb8e5a authored by Ilya Kirillov's avatar Ilya Kirillov

Added function for receiving id of the current content control.

parent f965cff6
...@@ -7465,6 +7465,24 @@ background-repeat: no-repeat;\ ...@@ -7465,6 +7465,24 @@ background-repeat: no-repeat;\
return oContentControl ? oContentControl.GetContentControlPr() : null; return oContentControl ? oContentControl.GetContentControlPr() : null;
}; };
asc_docs_api.prototype.asc_GetCurrentContentControl = function()
{
var oLogicDocument = this.WordControl.m_oLogicDocument;
if (!oLogicDocument)
return null;
var oInfo = oLogicDocument.GetSelectedElementsInfo();
var oInline = oInfo.GetInlineLevelSdt();
var oBlock = oInfo.GetBlockLevelSdt();
if (oInline)
return oInline.GetId();
if (oBlock)
return oBlock.GetId();
return null;
};
// input // input
asc_docs_api.prototype.Begin_CompositeInput = function() asc_docs_api.prototype.Begin_CompositeInput = function()
......
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