From 80b484f5135637aed4112b3bd85b6c8bc1a0fef3 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Wed, 18 Feb 2026 15:23:41 +0300 Subject: [PATCH] [de][plugins] Add methods to plugins api IsFillingFormMode/IsFillingOFormMode/IsEditingOFormMode --- word/api_plugins.js | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/word/api_plugins.js b/word/api_plugins.js index 58d2dc3c7d..ab172b4a77 100644 --- a/word/api_plugins.js +++ b/word/api_plugins.js @@ -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;