ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.78k stars 1.08k forks source link

Serious issues with Automation API #2466

Open yiwen9488 opened 10 months ago

yiwen9488 commented 10 months ago

This issue is unique.

Operating System of DocumentServer

Docker

Version information

7.5.0.125

Expected Behavior

var connector = docEditor.createConnector()

Asc.scope.text = "Hello world!"; connector.callCommand(function() { var oDocument = Api.GetDocument(); var oParagraph = Api.CreateParagraph(); oParagraph.AddText(Asc.scope.text); oDocument.InsertContent([oParagraph]);

}, function() { console.log("callback command"); });

connector.executeMethod("SetFormValue",[forms[i]["InternalId"],"OnlyOffice BANK"],null); Presentation

Actual Behavior

In Presentation mode, the method can be executed normally when no ppt is displayed. Once the ppt is played, the ppt function is displayed, or the connector.callCommand will not execute the content in the method. The same goes for connector.executeMethod(). What is the reason for this?

Reproduction Steps

Show the ppt, finish the show after execution

Additional information

Google Chrome

yiwen9488 commented 10 months ago

slide presentation ,When you go to full screen, it triggers this question

yiwen9488 commented 10 months ago

chrome_rXyEG8WDZo

yiwen9488 commented 10 months ago

Snipaste_2023-11-08_08-28-00