I have logged it in our feedback portal by making this thread public.
I have also updated your Telerik points.
private
void
radRichTextEditor1_CommandExecuting(
object
sender, CommandExecutingEventArgs e)
{
if
(e.Command
is
MoveCaretCommand)
{
if
((MoveCaretDirections)e.CommandParameter == MoveCaretDirections.DocumentStart)
{
PermissionRangeStart permissionRangeStart =
this
.radRichTextBox.Document.EnumerateChildrenOfType<PermissionRangeStart>().FirstOrDefault();
if
(permissionRangeStart !=
null
)
{
e.Cancel =
true
;
if
(
this
.CheckIfPositionIsAtPermissionRangeStart(permissionRangeStart))
{
this
.radRichTextBox.Document.CaretPosition.MoveToDocumentElementStart(permissionRangeStart);
}
}
}
}
}
private
bool
CheckIfPositionIsAtPermissionRangeStart(PermissionRangeStart permissionRangeStart)
{
DocumentPosition permissionRangePosition =
new
DocumentPosition(
this
.radRichTextBox.Document);
permissionRangePosition.MoveToDocumentElementStart(permissionRangeStart);
permissionRangePosition.MoveToNextInline();
return
this
.radRichTextBox.Document.CaretPosition != permissionRangePosition;
}