When I insert a large jpeg into the richtextbox, the editor chops off the right side of the image to fit into the richtextbox without a horizontal scrollbar. What I need is a way to make the richtextbox expands to fit the image.
<
telerik:RadRichTextBox
HorizontalAlignment
=
"Stretch"
LayoutMode
=
"Flow"
x:Name
=
"editor"
AllowDrop
=
"True"
Drop
=
"editor_Drop"
ShowComments
=
"False"
BorderBrush
=
"Transparent"
BorderThickness
=
"0"
IsSelectionMiniToolBarEnabled
=
"False"
IsContextMenuEnabled
=
"True"
IsInHeaderFooterEditMode
=
"False"
DocumentPresentationChanged
=
"EditorDocumentContentChanged"
LostFocus
=
"editor_LostFocus"
SizeChanged
=
"editor_SizeChanged"
HorizontalScrollBarVisibility
=
"Disabled"
>
</
telerik:RadRichTextBox
>
private
void
editor_SizeChanged(
object
sender, SizeChangedEventArgs e)
{
this
.editor.UpdateEditorLayout();
}