When word contains non-letters symbols at its start and/or end, it's always considered incorrect by the spell checker, even when it's present in the spell checking dictionary. The most common case is with abbreviations like "dr.", which should be invalid when are typed without the period ("dr"), but valid otherwise ("dr.")
Partial workaround: add the word without the punctuation to the dictionary. The problem is that the word without the punctuation will also be considered correct.
Uppercase words with non-alphanumeric symbols, e.g. period, are recognized as spelling errors by the spell checker. There are two scenarios which we think are related to this. 1. For example, you have U.N. spell checker is recognized only the U.N and considering the last dot as an end of a sentence. If you add the U.N. to the dictionary the spell checker still recognizes only U.N and the last dot is ignored. 2. The SpellCheckUppercaseWords property of the DocumentSpellChecker is set to false and words with uppercase should be ignored. Nevertheless, this property is set to false the U.N. is not ignored.
The redo command can't be executed if a content outside of a permission range is selected. For comparison, the undo command can be executed. Steps to reproduce: 1. Add two paragraphs to the document with text. 2. Select the first paragraph and add permission range. 3. Protect the document. 4. Add text into the permission range. 5. Press Undo (Ctrl+Z). 6. Select text outside of the permission range. 7. Press Redo (Ctrl+R). Expected: the redo action should be executed. Fix available in LIB Version 2015.2.515.
When typing in RadRichTextBox, the characters appear in the document with slight delay.
Available in LIB Version 2017.2.619.
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.
The InsertTable command should copy the current style to all paragraphs in the new table.
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.