Profiling results show bottleneck in the line-breaking logic within Paragraph MeasureOverride.
In MS Word, there is special command in Home -> Paragraph -> Borders dropdown -> Horizontal Line, which inserts special drawing similar to 3D horizontal line in a paragraph. Such line should be exported to <hr> tag during HTML export, and respectively <hr> tag should be imported as Horizontal Line. Note: the representation of the horizontal line in the docx document is as follows: <w:pict> <v:rect id="_x0000_i1027" style="width:0;height:1.5pt" o:hralign="center" o:hrstd="t" o:hr="t" fillcolor="#a0a0a0" stroked="f"/> </w:pict> Workaround: Currently, you can add a horizontal line using a table with a single border. Here is some code demonstrating how to do this: ---------------------------------------------------------- var document = new RadDocument(); var editor = new RadDocumentEditor(document); Table table = new Table(); var topBorder = new Telerik.Windows.Documents.Model.Border(1, BorderStyle.Single, Colors.Red); var borders = new TableBorders(table.Borders.Left, topBorder, table.Borders.Right, table.Borders.Bottom); table.Borders = borders; var row = new TableRow(); var dummyCell = new TableCell(); var dummyParagraph = new Paragraph(); dummyParagraph.FontSize = 0; dummyParagraph.LineSpacing = 0; dummyParagraph.SpacingAfter = 0; dummyParagraph.SpacingBefore = 0; dummyCell.Blocks.Add(dummyParagraph); row.Cells.Add(dummyCell); table.Rows.Add(row); editor.InsertTable(table, shouldInsertParagraphBeforeTable: true); this.radRichTextBox.Document = document; ----------------------------------------------------
When inserting text (document fragment) next to a correctly spelled word they get both underlined as incorrect.
In MergeFields the general switch may be used to format the Result Text. The text may appear in lowercase, uppercase, title case and so on.
Currently UI code generated by RadRichTextBox wizard is not localized out of the box. Add support for easier localization.
Consider raising an event when the images are finished loading, or an option for loading the images synchronously.
Implement IF and ASK fields.
Currently PdfFormatProvider does not use the track-changes styles when exporting the document. So the different text color, underline, strike through or borders will not appear in the exported PDF.
In some text editors (e.g. Visual Studio code editor), pressing the Insert button activates overtype mode, where characters are typed over the current ones (the current character is deleted before the new one is inserted). This is not supported in the modern versions of MS Word.
Add support for DeletePreviousWord and DeleteNextWord commands, triggered with Ctrl+Backspace and Ctrl+Delete keyboard shortcuts.
Floating table are tables that can be absolutely positioned in the document, with different text wrapping (similar to floating images). MS Word converts a table to floating object whenever the table is dragged. Add options in Table Properties dialog similar to MS Word – Table with Text Wrapping: Around and None.
Support (programmatic and non-programmatic) for Word-like real-time text correction and formatting (similar to AutoCorrect and AutoFormat).
The same issue is observed with heading styles.
The HtmlExportSettings property PropertiesToIgnore can't be used to control how the paragraph or character properties of a list will be exported. Steps to reproduce: Create a document with a list of different levels. Set fp.ExportSettings.PropertiesToIgnore["li"].Add("margin-left"); Export to HTML. Observed: The PropertiesToIgnore doesn't work for paragraph properties of a list.
Add support for optional (a.k.a. soft) hyphens. In MS Word, such are inserted using Ctrl + -. If the word need to be split as there is no enough space on the line, the word is split after the optional hyphen.
Font weight, size and other current editing style properties are not preserved when document layout is performed, for example in the following cases: - the document is in web layout mode and the controls is resized - scroll bar changes its visibility. Steps to reproduce: - Set RadRichTextBox to Web layout mode. - Type a word, select it and make it bold. - Press enter and type a word - Repeat the previous step until RadRichTextBox height is reached and scrollbar appear. - Type a word. Expected: The last word is bold. Actual: The last word is not bold.
Implement the export of notes (footnote, endnote) in the PdfFormatProvider of the RadRichTextBox.
DeleteTableRowCommand and DeleteTableColumnCommand should be able to delete all selected table rows/columns at once. Currently, the command cannot be executed when there is selection and the user should delete the rows/columns one by one.
Add Paragraph property controlling whether SpacingBefore / SpacingAfter is applied between paragraphs with the same style. In MS Word, the corresponding option is controlled with "Don't add space between paragraphs of the same style" checkbox in the font properties dialog - and the paragraph spacing after will not be applied. In OOXML, it is described with the w:contextualSpacing element. We don't respect this property on import of such files, and the paragraph spacing is bigger. Common use case for this feature is that when list is applied to multiple paragraphs, Paragraph List style is applied to the items, and this style has "Don't add space between paragraphs of the same style" applied, so the vertical spacing between the items is smaller.