When one or more sections contain locked components, e.g. ContentControls I get a RichApi error. It is possible to set the cannotDelete property (which makes it possible to replace the controls) of RichText Content Controls to false. But other ContentControls such as plain text Controls are not supported in the Office-js library.
Is there a way to set the cannotDelete property of non RichText ContentControls to false programmatically in the Word Addin. Or another workaround to make it possible to use the insertOoxml method in combination with a partially locked document?