Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
ADMIN
Created by: Tanya
Comments: 0
Category: RichTextBox
Type: Bug Report
0
When the user opens a dialog in RadRichTextBox, after closing this dialog, the focus is lost.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
When a hyperlink is copy/pasted from MS Word to RadRichTextBox, only the display name is pasted and the hyperlink is lost.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
The textblocks in PageSetup dropdowns in PageLayout tab have black foreground, when Expression_Dark theme is applied. The foreground color should be white.
Approved
Last Updated: 31 Oct 2018 08:11 by ADMIN


The exception can be observed when printing document containing images with unsupported formats, or images with empty source (RawData = "").

The exception is with the following call stack:

   at Telerik.Windows.Documents.UI.HeaderFooterContainer.UpdateUI(SectionLayoutBox sectionBox, Boolean delayed)
   at Telerik.Windows.Documents.UI.HeaderFooterContainer.UpdateUI(SectionLayoutBox sectionBox)
   at Telerik.Windows.Documents.UI.DocumentPrintPresenter.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)


Workarounds:

If you click on print preview and print the document from the preview it is working;
     2. Use the following code

        this.radRichTextBox .PrintStarted += Rtb_PrintStarted;

        private void Rtb_PrintStarted(object sender, EventArgs e)
        {
            RadRichTextBox rtb = (RadRichTextBox)sender;
            foreach (var floatingImage in rtb.Document.EnumerateChildrenOfType<FloatingImageBlock>()
                                                      .Where(fi => !this.IsSupportedImageFormat(fi.ImageInline.Extension))
                                                      .ToList())
            {
                floatingImage.Parent.Children.Remove(floatingImage);
            }

            foreach (var inlineImage in rtb.Document.EnumerateChildrenOfType<ImageInline>()
                                                    .Where(i => !this.IsSupportedImageFormat(i.Extension))
                                                    .ToList())
            {
                inlineImage.Parent.Children.Remove(inlineImage);
            }
        }

        private bool IsSupportedImageFormat(string format)
        {
            return (format == "jpg") ||
                   (format == "jpeg") ||
                   (format == "png") ||
                   (format == "bmp");
        }   

Approved
Last Updated: 31 Oct 2018 08:11 by Sistema PRI
The calculation of the left and hanging indent is incorrect for paragraph in list when the left and hanging indents are with the same value.
Approved
Last Updated: 31 Oct 2018 08:07 by ADMIN
Italic bullet sign of bulleted paragraph (with last italic characters) is exported like an equal sign with a line through it.

Workaround: Make all italic bullets non-italic. The following code achieves that:

RadDocument document = this.radRichTextBox.Document;

foreach (var paragraph in document.EnumerateChildrenOfType<Paragraph>())
{
    if (paragraph.ListId != Paragraph.ListIdProperty.DefaultValue)
    {
        DocumentList documentList = document.ListManager.GetDocumentListById(paragraph.ListId);
        int levelIndex = paragraph.ListLevel != Paragraph.ListLevelProperty.DefaultValue ? paragraph.ListLevel : 0;

        if (documentList.ActualStyle.Levels[levelIndex].NumberingFormat == ListNumberingFormat.Bullet)
        {
            documentList.ActualStyle.Levels[levelIndex].SpanProperties.FontStyle = FontStyles.Normal;
        }
    }
}

this.radRichTextBox.UpdateEditorLayout();
Approved
Last Updated: 31 Oct 2018 08:06 by ADMIN
When entering header, the focus is moved to the footer. When entering footer, focus goes to the main document editor, comment editor (if comment is present), or footnotes/endnotes editor (if footnotes/endnotes are present). Sometimes the focus is moved to the Font combo box in the Ribbon UI.

When inserting symbols in the header, some of them are inserted in the footer.
Approved
Last Updated: 31 Oct 2018 07:54 by ADMIN

Workaround: When the error is reproducible with revisions, inherit the RevisionsToolTipLayer class and override ResetPooledElementProperties method
protected override void ResetPooledElementProperties(object element)
{
    if (element is Path)
    {
        Path path = (Path)element;
        path.Data = null;
        path.Fill = null;
        path.Dispatcher.BeginInvoke(()=>
        ToolTipService.SetToolTip(path, null));
    }
}


When the error is thrown when using hyperlinks, setting the format string for hyperlinks to an empty string prevents the error but will also disable the hyperlink tooltips:
this.radRichTextBox.HyperlinkToolTipFormatString = string.Empty;
Approved
Last Updated: 31 Oct 2018 07:54 by Chris
When color is applied to table cell border through the Table Borders -> Cell Borders, the thickness of the border is set to 0. This makes the border invisible.

Workaround: Change the border thickness manually in the dialog after the color is changed.

Steps to reproduce:
- Add table with one column
- Open from context menu Table Borders dialog
- Click on Cell Borders tab 
- Apply color -> blue
- Press OK

Expected: The table cell has blue borders applied.
Actual: The table cell has no borders.
Approved
Last Updated: 31 Oct 2018 07:53 by Sistema PRI
The borders of a row spanned (merged) cell are not correctly imported if the borders are applied before the merge.
Approved
Last Updated: 15 Mar 2018 15:06 by ADMIN
When importing an html file and the color of the text is marked as windowtext, the text is transparent.
Approved
Last Updated: 05 Apr 2017 14:38 by ADMIN
Steps to reproduce.
1. Open the ManageStylesDialog dialog.
2. Hover the Normal style item.
3. Scroll the dialog using mouse wheel. - An UnhandledException in Silverlight will be throw