I have created a custom AnnotationRange following the CustomLayerAndCustomAnnotation example and I would like any text the user types in the editor to break this annotation range and only show content that was loaded with this range and never edited to show up in the range.
I'm calling SplitAnnotationRange
on the current AnnotationRange in a PreviewEditorKeyDown event handler after I have determined that they keypress was one that would insert content. The annotation range is split at the correct position but my cursor is not placed in the area of the split, it is at the start of the second range. If I call CaretPosition.MoveToPrevious the cursor ends up at the end of the first annotation range.
I have tried all combinations of SkipPositionBefore on my start and end ranges but I believe the correct settings are False on the RangeStart and True on the RangeEnd which should make the position between a RangeEnd and a RangeStart a valid editable position.
Is there any easier way to get content inserted by the user to automatically split my annotation range or to get the cursor to go into the position between the RangeEnd and RangeStart after SplitAnnotationRange.