[de] Add a method to the plugins api to get the current word

This commit is contained in:
KirillovIlya
2023-03-13 23:21:33 +05:00
committed by Ilya Kirillov
parent 2b68562dde
commit 8db4e834a8

View File

@ -1159,6 +1159,23 @@
this.asc_setRestriction(_restrictions);
};
/**
* Get the current word
* @memberof Api
* @typeofeditors ["CDE"]
* @alias GetCurrentWord
* @since 7.3.3
* @example
* window.Asc.plugin.executeMethod("GetCurrentWord");
*/
window["asc_docs_api"].prototype["pluginMethod_GetCurrentWord"] = function()
{
let logicDocument = this.private_GetLogicDocument();
if (!logicDocument)
return "";
return logicDocument.GetCurrentWord();
};
function private_ReadContentControlCommonPr(commonPr)
{