[de][plugins] Add methods to plugins api IsFillingFormMode/IsFillingOFormMode/IsEditingOFormMode

This commit is contained in:
Ilya Kirillov
2026-02-18 15:23:41 +03:00
parent c39cd6a313
commit 80b484f513

View File

@ -1564,6 +1564,59 @@
pasteTail();
};
/**
* Checks if the document is in the filling form mode.
* @memberof Api
* @typeofeditors ["CDE"]
* @alias IsFillingFormMode
* @returns {boolean} - Returns **true** if the document is in the filling form mode.
* @since 9.3.0
* @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/IsFillingFormMode.js
*/
Api.prototype["pluginMethod_IsFillingFormMode"] = function()
{
let logicDocument = this.private_GetLogicDocument();
if (!logicDocument)
return false;
return logicDocument.IsFillingFormMode();
};
/**
* Checks if the document is in the filling OForm mode.
* @memberof Api
* @typeofeditors ["CDE"]
* @alias IsFillingOFormMode
* @returns {boolean} - Returns **true** if the document is in the filling OForm mode.
* @since 9.3.0
* @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/IsFillingOFormMode.js
*/
Api.prototype["pluginMethod_IsFillingOFormMode"] = function()
{
let logicDocument = this.private_GetLogicDocument();
if (!logicDocument)
return false;
return logicDocument.IsFillingOFormMode();
};
/**
* Checks if the document is in the editing OForm mode.
* @memberof Api
* @typeofeditors ["CDE"]
* @alias IsEditingOFormMode
* @returns {boolean} - Returns **true** if the document is in the editing OForm mode.
* @since 9.3.0
* @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/IsEditingOFormMode.js
*/
Api.prototype["pluginMethod_IsEditingOFormMode"] = function()
{
let logicDocument = this.private_GetLogicDocument();
if (!logicDocument)
return false;
return logicDocument.IsEditingOFormMode();
};
window["AscCommon"] = window["AscCommon"] || {};
window["AscCommon"].readContentControlCommonPr = readContentControlCommonPr;