Open RickerAndersons opened 9 months ago
api plugin and api buidler are different layers isolated from each other. CallCommand executes api buidler methods. The pluginMethod_AddContentControlList method is an api plugin method not available for execution from the api buidler context by design.
The way to use this method is as follows
https://api.onlyoffice.com/plugin/executemethod/text/addcontentcontrolcheckbox
window.Asc.plugin.executeMethod ("AddContentControlCheckBox", [
{
"Checked" : false,
"CheckedSymbol" : 9756,
"UncheckedSymbol" : 9744
},
{
"Id" : 7,
"Tag" : "{tag}",
"Lock" : 0
}
]);
Thanks for answering
This issue is unique.
Operating System of DocumentServer
Linux (RPM package)
Version information
7.5.1
Expected Behavior
Use the
Api.PluginMethod_AddContentControlCheckBox
to add a check boxActual Behavior
I use
callCommand
to call this methodBut the editor report an errot, like this: Uncaught TypeError: this.una is not a function
Reproduction Steps
No response
Additional information
Api.pluginMethod_AddContentControlList
method is right