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.
Currently the API allows ClipboardHandler-s to be registered in ClipboardEx.ClipboardHandlers collection, which is used when content is pasted. We can extend ClipboardHandler with property describing whether the handler is supported for copy, paste, or copy&paste, and use the collection for copy operation as well. Workaround: Use RadRichTextBox.CommandExecuted and on copy, enhance the original data object in the clipboard: this.radRichTextBox.CommandExecuted += (sender, e) => { if (e.Command is CopyCommand) { var originalDataObject = Clipboard.GetDataObject(); DataObject dataObject = new DataObject(); foreach (string format in originalDataObject.GetFormats()) { dataObject.SetData(format, originalDataObject.GetData(format)); } dataObject.SetData("Html", new HtmlFormatProvider().Export(this.radRichTextBox.Document)); Clipboard.SetDataObject(dataObject); } };
The following HTML should generate a table with width of 600px: <table width="25px" border="1px solid black"> <tr> <td> <table width="600"> <tbody> <tr><td >Test</td></tr> </tbody> </table> </td> </tr> </table> When the same html is imported in RadRichTextBox, the table is 25px wide.
When the users move the image (evaluated as a result of the field) using the document selection, the field is removed from the document and the image is duplicated.
Steps to reproduce: Create a new blank document. Write some text. Use "Enter" key to create some empty lines, until new page is created. Print to a real printer or to pdf file using tools like PDFCreator or Bullzip. Actual result: Nothing is printed. Expected result: Two pages should be printed. Workaround: Add an empty character in the footer.
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.
When a continuous section break is inserted on a page containing an image and with a watermark applied, the watermark is shown on top of the other document elements. The issue is observed only on the page with the section break.
Implement generating of an image and inserting it into the clipboard on copy/cut so it can be pasted in MS Paint or other tools for image editing. Attaching to the CommandExecuting event of RadRichTextBox and handling the copy command can be used as a workaround:CopyCommand command = e.Command
as
CopyCommand;
if
(command !=
null
)
{
ImageInline image =
this
.radRichTextBox.Document.Selection.GetSelectedSingleInline()
as
ImageInline;
if
(image !=
null
)
{
Clipboard.SetImage(image.ImageSource);
e.Cancel =
true
;
}
}
When a text doesn't specify font explicitly with \fN tag, and default character properties (\defchp) are not specified, or are specified but without font set, the font of the text is visualized with the default font - Verdana. Instead, the default font for the document should be used - defined with \deffN tag.
A NullReference exception is thrown when the content of a MS Outlook mail is copy/pasted into RadRichTextBox. This is reproducible in Paged LayoutMode.
Inserting a page break inside a table is currently not supported (the feature request is logged at https://feedback.telerik.com/Project/143/Feedback/Details/211108). Therefore, the Page Break button inside the Insert tab of the ribbon should be disabled when the caret is positioned inside a table. Workaround: Track the position of the caret and when the latter goes into a table, set the Enabled property of InsertPageBreakCommand to false.
When the caret position is inside Table and a page break is inserted, the table should be split into two tables with a page break between.
Create document with some text. Insert image. Right click on image and add hyperlink to it. Drag the image somewhere in the text. Observe that it is created a copy of the image. Actually, the issue occurs when the hyperlink is inserted.
When there isn't space for the first non-repeated row to be drawn on the page, the repeated rows should not be repeated on each page where the table spans - they should be drawn only on the first page (the page where the table begins). However, currently the requirement described above is not satisfied and the first repeated row is drawn on every page, where the table spans, which is not correct according to the Office Open XML specification.
If you highlight a section of text and apply styles to it like bold/italic/underline and place your cursor at the end of that text the Clear All Formatting button does not work. If you turn on those styles and then type some text and place your cursor at the end of that text it does work. The difference in the XAML is that in the first case the styles are only on the span of text itself while in the second the styles are on the span and the paragraph. I have attached a GIF of steps to reproduce and the XAML from the editor before clicking the Clear All Formatting button.
Expose an API allowing easy customization of the layer.
Currently, working with bookmarks and cross references in the headers and footers of a document is not supported.
When exporting with RtfFormatProvider (including when the users copy content), an additional \par tag is added at the end of the document. Workaround: Process the RTF after it is generated. Here is an example how to achieve it when copying: this.radRichTextBox.CommandExecuted += radRichTextBox_CommandExecuted; ... void radRichTextBox_CommandExecuted(object sender, CommandExecutedEventArgs e) { if (e.Command is CopyCommand) { DocumentPosition end = this.radRichTextBox.Document.Selection.Ranges.Last.EndPosition; RadDocument clipboardDocument = ClipboardEx.GetDocument().ToDocument(); RtfFormatProvider provider = new RtfFormatProvider(); string rtfString = provider.Export(clipboardDocument); int indexLastParOpening = rtfString.LastIndexOf("{"); int indexLastParClosing = rtfString.IndexOf('}', indexLastParOpening); string newRtf = rtfString.Remove(indexLastParOpening, indexLastParClosing - indexLastParOpening + 1); Clipboard.SetData("Rich Text Format", newRtf); } }
Currently, when the users perform replace, and there are no more matches which should be replaced, the "The searched text was not found" message is shown. Add functionality to say that there are no more matches instead of saying that the text is not found.