Is there any way to protect a TWPTextObj if a user deletes the surrounding text? Ideally I would like objects to only be deleted if the user explicitly chooses to do so (eg by selecting the object and pressing the delete key rather than by deleting the link in the containing paragraph). If the user deletes the containing paragraph, the object should automatically be moved to an adjacent paragraph.
IN ProtectedProp there is a ppIsTextObjectCustom which could be used.
But if you want to keep the structure after block deletion you can only use Insertpoint or Bookmark text objects.
Then you can use this ProtectionProps:
ppBookmarkKeepStructure, // Used with ppIsBookmark. Recreate Bookmark structure
ppInsertpointKeepStructure, // Used with ppIsInsertpoint. Recreate Field structure
Julian
#2♥ 0
This category is archived. No new posts are possible.