mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
[de] Add a method to the plugins api to get the current word
This commit is contained in:
committed by
Ilya Kirillov
parent
2b68562dde
commit
8db4e834a8
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user