When document with large images (the original image cannot fit on the page without resizing) are exported to PDF, the PDF document is visualized distorted by Adobe Reader. The issue is regression, introduced in 2017 R1 SP1. Workarounds: - Use images that can fit on the page. - Zoom RadRichTextBox to scale which allows the large images to fit fully on the page. The fix is available in LIB Version 2017.2.627.
When the LayotMode of RadRichTextBox is set to Flow and a Table is inserted as the first element in this document, the adorner icon is cut off by the document edge and cannot be used.
Tabs button in Paragraph Properties dialog is visible even when RadRichTextBox.TabStopsPropertiesDialog is not set. In addition, pressing the button in this scenario closes the Paragraph Properties dialog itself. As this property is automatically set using MEF, this situation could happen if the tabs dialog is missing in the the composition container. Workaround: Check whether the TabStopsPropertiesDialog is null and if true, then hide the TabsButton: var windowTabStopsPropertiesDialog = (this.radRichTextBox.TabStopsPropertiesDialog as RadWindow); var windowParagraphPropertiesDialog = (this.radRichTextBox.ParagraphPropertiesDialog as RadWindow); if (windowTabStopsPropertiesDialog == null) { (windowParagraphPropertiesDialog.FindName("TabsButton") as RadButton).Visibility = Visibility.Collapsed; }
When the preferred width of the table is set to a percentage value and the columns inside have preferred width values in pixels, the bigger width should take precedence when showing the table. At this point, the table column widths are with higher priority.
Bullets of a list are exported with a character which is not proper for plain text. The indentation of the bullet is also not exported. As a workaround, the incorrect bullet character could be replaced with something more suitable. Here is an example: TxtFormatProvider textFormatProvider = new TxtFormatProvider(); exportedText = textFormatProvider.Export(this.radRichTextBox.Document); string newText = exportedText.Replace((char)61623, (char)8226);
When some cells are merged in one cell and context menu is displayed for the merged cell, "Merge Cells" option is still available in the menu. However it should not be available for a merged cell.
When the main container of a window is ScrollViewer, the caret is not kept in the view while users move it with the arrow keys.
The InsertTable command should copy the current style to all paragraphs in the new table.
Hyperlink tooltip is not changed when the HyperlinkNavigationMode property of RadRichTextBox is changed. Workaround: Invoke radRichTextBox.ActiveEditorPresenter.RecreateUI() method just after the property value change: this.radRichTextBox.HyperlinkNavigationMode = HyperlinkNavigationMode.Click; this.radRichTextBox.ActiveEditorPresenter.RecreateUI(); Steps to reproduce: 1. Insert a hyperlink in RTB. 2. On button click change the HyperlinkNavigationMode. Observe: The tooltip is not changed from Click to ... Ctrl + Click to .. and vise versa.
Selection doesn't work as expected at the end of a Paragraph. If the user holds down the mouse button down and drags just after the paragraph end (in the free space after the last line), the end of paragraph symbol is unexpectedly selected when the mouse hovers the end of paragraph symbol. Instead, the first letter before the paragraph end should be selected, but only after the mouse hovers it. Steps to reproduce: - Add two paragraphs. - Click in the empty space just after the end of the last line of the first paragraph, and start moving in direction of opposite to the text flow (left in LTR text case). Expected: Text is selected only after the mouse passes the first symbol before the paragraph end. Actual: Paragraph end symbol is selected as soon as the mouse hovers it.
RadRichTextBox/RadDocumentEditor's MailMerge(bool) method doesn't respect the startEachRecordOnNewPage parameter. When the parameter is set to 'false', records are still merged on different pages, instead of on one. Workaround: Use RadDocumentMerger to append the resultant documents: http://docs.telerik.com/devtools/wpf/controls/radrichtextbox/features/merge-documents/append
The spellchecker does not recognize words with non-breaking spaces between them as separate. A workaround when pasting text into the RadRichTextBox is to subscribe to the CommandExecuting event of the control, get the paste text from the clipboard and replace all non-brekaing spaces with spaces. private void editor_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e) { if (e.Command is PasteCommand) { var pasteText = Clipboard.GetDataObject().GetData("HTML Format") as string; if (pasteText != null) { pasteText= pasteText.Replace(" ", " ").Replace(' ',' '); var originalDataObject = Clipboard.GetDataObject(); DataObject dataObject = new DataObject(); foreach (string format in originalDataObject.GetFormats()) { dataObject.SetData(format, originalDataObject.GetData(format)); } dataObject.SetData("HTML Format", pasteText); Clipboard.SetDataObject(dataObject); } } }
Words separated by certain punctuation symbols are treated as single word by the "spell check as you type" real-time spell checker. Steps to reproduce: Case 1: 1. Type 'testt/mest'. Expected: The two wrong words should be underlined separately Actual: The whole text is underlined. Case 2: 1. Type 'test/mest'. Expected: Only the second word is underlined Actual: The two words are underlined Case 3: 1. Type 'testt/mest 2. Show the context menu by clicking on the second word, and choose spell checking suggestion. 3. Show the context menu by clicking again on the second word. 4. Show the context menu for the first word. Expected: Context menu contains spell checking suggestions Actual: Context menu doesn't contain spell checking suggestion Case 4: 1. Type 'test'mest'. 2. Shown context menu by clicking on 'test' Expected: Context menu contains suggestion for the whole word - 'testament' Actual: Context menu contains suggestion for the 'mest' Case 5: 1. Type 'test.mest'. 2. Shown context menu by clicking on 'mest' Expected: Context menu contains suggestion for the whole word - 'testament' (this happens if the context menu is shown by clicking on the 'test') Actual: Context menu contains suggestion for the 'mest' only. Clicking on the suggestion replaces only 'mest' with the suggestion. Case 6: (the same as Case 2, but with non-breaking space) 1. Copy and paste this text in RadRichTextBox 'testt mest' (the white space in non-breaking space) Expected: only the second word is underlined. Actual: both words are underlined as one.
NullReferenceException is thrown when a hyperlink is removed from the document while the user is hovering it with the mouse. Such cases are when hyperlink is removed from the context menu, or when TOC field containing hyperlinks is updated from the context menu. The exception is with the following call stack: ErrorMessage: Object reference not set to an instance of an object. StackTrace: at Telerik.Windows.Documents.UI.UIProviders.HyperlinkUIProviderBase.UIElement_MouseEnter(Object sender, MouseEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) ... If the mouse hovers the hyperlink a moment later, exception is not observed. The situation when the mouse is over a hyperlink is not so uncommon: - When the user operates hyperlink context menu with the keyboard and removes the hyperlink - when there are multiple items in the ToC, there is great probability for the mouse to be over a hyperlink which is just below the Update Field button in the context menu - and when the context menu disappears, the mouse gets over the hyperlink. Fix available in LIB Version 2017.2.529.
If the font applied to text doesn't contain Bold or Italic typefaces, the text at the end of the line is clipped. Workaround: Switch to the old rendering mode (which is somewhat slower): this.radRichTextBox.TextRenderingMode = TextBlockRenderingMode.TextBlockWithPropertyCaching;
ArgumentException is thrown when a missing image with no width and height is imported from HTML format. Steps to reproduce: 1. Import the attached HTML. 2. Wait for a few second for loading the image. Actual: An ArgumentException is thrown for setting the width or height of an image to an infinity. Fix available in LIB Version 2017.2.522.
The focus stays in the combo box. Workaround: Attach to the DropDownClosed event of the combo box and focus the presenter: (this.radRichTextBox.ActiveEditorPresenter as Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter).Focus(); Fix available in LIB Version 2017.2.522.
DocumentRuler.CreateHorizontalRuler and DocumentRulerCreateVerticalRuler properties are not always changing the visibility of the horizontal and vertical ruler when set to false. If the properties are set to false in XAML, the corresponding ruler parts are still visible. The problem is that the values of the properties are reset internally during the controls creation, and after the layout mode of the document is changed. Workaround: Set the properties in code behind, and reset them after layout mode change: public MainWindow() { InitializeComponent(); this.ruler.CreateHorizontalRuler = false; this.radRichTextBox.DocumentLayoutModeChanged += (sender, e) => this.ruler.CreateHorizontalRuler = false; }
Bullet with a big font-size applied is not horizontally aligned with the rest of the bullets of the same level. Steps to reproduce: 1. Add several paragraphs. 2. Apply a list to the paragraphs. 3. Select a paragraph in the middle. 5. Apply a big font-size, like 24. 6. Export to HTML. Actual: The bullet with the bigger font-size is not horizontally aligned with the rest of the paragraphs. Expected: All paragraphs should be horizontally aligned