Compare commits

..

1 Commits

Author SHA1 Message Date
4c765147b0 Merge branch hotfix/v8.3.1 into master 2025-02-27 13:22:08 +00:00

View File

@ -34,8 +34,6 @@
(function(window)
{
let Api = window["asc_docs_api"];
/**
* @typedef {Object} ContentControl
* Content control object.
@ -64,7 +62,7 @@
* @returns {ContentControl[]} - An array with all the forms from the document.
* @see office-js-api/Examples/Plugins/Forms/Api/Methods/GetAllForms.js
*/
Api.prototype["pluginMethod_GetAllForms"] = function()
window["asc_docs_api"].prototype["pluginMethod_GetAllForms"] = function()
{
let oFormsManager = this.private_GetFormsManager();
if (!oFormsManager)
@ -87,7 +85,7 @@
* @returns {ContentControl[]} - An array with all the forms from the document with the specified tag.
* @see office-js-api/Examples/Plugins/Forms/Api/Methods/GetFormsByTag.js
*/
Api.prototype["pluginMethod_GetFormsByTag"] = function(tag)
window["asc_docs_api"].prototype["pluginMethod_GetFormsByTag"] = function(tag)
{
let oFormsManager = this.private_GetFormsManager();
if (!oFormsManager)
@ -113,7 +111,7 @@
* @param {string | boolean} value - Form value to be set. Its type depends on the form type.
* @see office-js-api/Examples/Plugins/Forms/Api/Methods/SetFormValue.js
*/
Api.prototype["pluginMethod_SetFormValue"] = function(internalId, value)
window["asc_docs_api"].prototype["pluginMethod_SetFormValue"] = function(internalId, value)
{
this.private_SetFormValue(internalId, value);
};
@ -126,7 +124,7 @@
* @returns {null | string | boolean} The form value in the string or boolean format depending on the form type. The null value means that the form is filled with a placeholder.
* @see office-js-api/Examples/Plugins/Forms/Api/Methods/GetFormValue.js
*/
Api.prototype["pluginMethod_GetFormValue"] = function(internalId)
window["asc_docs_api"].prototype["pluginMethod_GetFormValue"] = function(internalId)
{
if (!AscCommon.g_oTableId)
return "";