To reproduce:
- Hold the control key and double click a word
Actual: the entire paragraph is selected
Expected: the current word should be selected, the existing selection should be extended.
If the document contains a simple field without run inside, the import process fails. <w:fldSimple w:instr="page" w:dirty="true"/> The same document with a run inside the field does not cause an error <w:fldSimple w:instr="page" w:dirty="true"> <w:r> <w:t>1</w:t> </w:r> </w:fldSimple>
Section break formatting symbol is not positioned as in MS Word. For example, when section break is inserted in an empty document and the cursor is placed before the break, when Enter is pressed, the section break formatting symbol is moved to the next line. In MS Word, the section break is preserved on the same line with the paragraph symbol.
When floating image is all of the following: - is anchored to paragraph inside a table with negative offset. - is with text wrapping "Behind text" or "In front of text" it should be positioned outside of the table. Currently the image is always positioned fully inside the table.
When the LayoutMode is set to Flow the size of the numbers is larger than expected.
This behavior is not observed in LayoutMode="Paged".
In Word, default tab stops are not present in Paragraph's hanging indent. This leads to difference in the length of the Tab symbol in Word and RadRichTextBox, in cases when hanging is bigger than the default tab stop width.
Performance is slow when importing document containing many hyperlink fields from RTF and Docx formats.
RichTextBox interprets the div tag by adding a new line upon its closing. However, when the content of the div tag is a br tag, the whole combination should be treated as one new line.
If there are two words with two spaces between them, and between the spaces there is annotation with SkipPositionBefore = false (e.g. track changes revision annotation or comment), and current editing style is changed on the position between the spaces (i.e. Toggle Bold, for example, without selection present) the first word formatting is affected (e.g. it becomes bold). Steps to reproduce: Variant 1: - Insert two words with a single space between them (e.g. "text telerik") - Turn Track Changes On - Insert a space after the single space between the two words. (i.e. right before 'telerik') - Toggle Bold Observe: "text" gets bold. Expected: "text" doesn't get bold, just current editing style is changed. Variant 2: - Insert two words with a two spaces between them (e.g. "text telerik") - Select the second space and the second word, and insert comment. - Put the caret between the spaces. - Toggle Bold Observe: "text" gets bold. Expected: "text" doesn't get bold, just current editing style is changed.
Mail merge is not working for the first record in the items source when the items source is IEnumerable with deferred execution. Workaround: convert the collection to list.
Clicking on floating Image when the caret position is not in the viewport, changes the viewport and starts image dragging. Instead, the image should just be selected. Steps to reproduce: 1. Start with empty document 2. Insert image, make it floating (right-click on it, select Text Wrapping -> In Front Of Text) 3. Drag the image near the bottom of the document. 4. Scroll and, if needed, zoom to such a factor, so that the first paragraph is outside of the view port. 5. Select the image (keep in mind that the image shouldn't be selected - the position should be at some of the previous paragraphs) Observe: The image dragging adorner is visible and the viewport is changed. Expected: The behavior shall be the same as MS Word - the viewport shouldn't be changed, and the image should just be selected
A reference in DocumentFragment to RadDocument (CopySource property) can cause a memory after copy-paste between RadDocument.
Workaround:
public static bool ReleaseClipboardExReferences(
RadDocument document)
{
dynamic clipboardEx = new DynamicProxyObject(typeof(ClipboardEx));
if (clipboardEx.documentClipboardData?.CopySource is DynamicProxyObject copySource
&& object.ReferenceEquals(copySource.Instance, document))
{
clipboardEx.documentClipboardData = null;
return true;
}
if (clipboardEx.CopiedDocumentFragment?.Fragment?.CopySource is DynamicProxyObject fragmentCopySource
&& object.ReferenceEquals(fragmentCopySource.Instance, document))
{
clipboardEx.CopiedDocumentFragment = null;
return true;
}
return false;
}
RadRichTextBox doesn't render a border that is not locally defined. In this case, the corresponding border from the applied table style should be used.
var image =
this
.radRichTextBox.Document.EnumerateChildrenOfType<ImageInline>().First();
if
(image.Height == 10 && image.ImageSource.DecodePixelHeight == 0)
{
image.Height = image.ImageSource.Height;
}
The RtfFormatProvider does not take the fonts from the Font.Manager
Workaround:
Unregister all custom fonts and the use the FontSubstituting event to supply the correct fonts:
private void ImportSettings_FontSubstituting(object sender, Telerik.Windows.Documents.FormatProviders.FontSubstitutingEventArgs e)
{
var fonts = Wpf.Fonts.Fonts.GetAllAvailableFonts();
var ff = fonts.Where(x => x.Source == e.OriginalFontName).FirstOrDefault();
e.SubstitutionFontFamily = ff;
}
After the import is complete you can register the fonts again.
When the user copy-pastes an image from Outlook, it is pasted as an IncludePictureField and visualized as expected. The field code looks like
{INCLUDEPICTURE :image001.png@01D15D16.4FAF0970 \* MERGEFORMATINET}
However, when the fields in the document are updated, the image is no longer shown because of its invalid Uri. In MS Word, when you paste the image, it is directly inserted as image and the field is skipped.
Workaround - remove the field start/ends (in the attachments)