Hello, I want to append / edit content inside an existing content control.
Currently, I’ve been using the InsertAndReplaceContentControls - ONLYOFFICE Api Documentation method for replacing content inside content controls. However, I’m unable to find a way to add content at the end of content controls.
For example:
Before:
What I want to happen:
![image](https://forum.onlyoffice.com/uploads/default/original/2X/c/c4d0d3a4eba4659805c695e863adbea08cb51ebb.png)
InsertAndReplaceContentControls will completely overwrite the “description” content control. This makes it unsuitable for this task.
What I came up with was to use the MoveCursorToContentControl
to position the cursor and the end of the content control and afterwards call AddContentControl
.
This works but it seems incredibly hacky. Any suggestions?