This plugin shows how to add, edit, and delete content controls using plugins.
It is called "Example work with content controls" in the interface and isn't installed by default in cloud, self-hosted and desktop version of ONLYOFFICE editors.
- Open the Plugins tab and press "Example work with content controls".
- In the first field you can remove, edit (setting) or add new content controls. After that press the "Insert/Replace".
- In the second field you can past InternalId for remove content control and press the "Remove" button.
- Press the "Get All Content Controls" button for get all content controls (info will apear in the third field).
- Press the "Change Field State" button for change field state (is content control or not).
- Press the "Get Current Field ID" and check console in your browser.
If you need more information about how to use or write your own plugin, please see this https://api.onlyoffice.com/plugin/basic