Can not redo after execute connector's callCommand method

Hello, first of all, Happy New Year.

I need to use connector to edit text documents. But after I call the callCommand method, the redo button become disable. This doesn’t meet my needs. Is there any way to do not disable the redo button after executing the callCommand method?

Document Server version: 8.2.1

I know that redo will become disabled after changing the content, but the command I executed did not modify the content

Hello @szmtcjm,
Please provide an example script that you send via callCommand. Also record a video demonstrating this behavior and send it to us.

@Carl The following is the script that executes the command. Not only GetAllContentControls API, but other APIs will also reset redo.

connector.callCommand(
    () => {
      const allContentControls = Api.pluginMethod_GetAllContentControls()
      return {
        allContentControls
      }
    },
    (data) => {
      console.log(data);
    }
  )

The video.

@szmtcjm thank you, I have managed to reproduce the issue and we are analyzing it at the moment. As soon as we have any news to share, I will get back to you.

However, in your particular example I don’t see any reason to execute Api.pluginMethod_GetAllContentControls() inside callCommand because callCommand is primarily used to send docbuilder scripts to the editor. If you execute the method via executeMethod, the Redo function is not disrupted.

@Carl In some cases, executeMethod cannot meet my needs. For example, I need to get all the paragraphs in a document first, and then get the ContentControl and ole objects in each paragraph.