RichTextEditor interprets the div tag by adding a new line upon its closing. However, when the content of the div tag is a br tag, the whole combination should be treated as one new line.
'Decrement paragraph left indent' command can set negative left indent which makes bullets/numbering of a list clipped. Instead, it shouldn't be executed if the bullets/numbering would become invisible.
RadRichTextBox always shows more than one page when there is enough space on the screen to render them next to each other. Expose an option to show one page view.
To reproduce: - Change the font of the new document: txtCustomerInstallation.Document = new RadDocument(); txtCustomerInstallation.RichTextBoxElement.ChangeFontFamily(new Telerik.WinControls.RichTextEditor.UI.FontFamily("Calibri")); txtCustomerInstallation.RichTextBoxElement.ChangeFontSize(Unit.PointToDip(10)); txtCustomerInstallation.RichTextBoxElement.ChangeParagraphSpacingAfter(0.0); txtCustomerInstallation.DocumentInheritsDefaultStyleSettings = true; - Start and paste plain text. - The font os changed to Verdana. Workaround: void radRichTextEditor1_CommandExecuting(object sender, CommandExecutingEventArgs e) { if (e.Command is PasteCommand) { e.Cancel = true; PasteNewText(); } } public void PasteNewText() { DocumentFragment clipboardDocument = null; string clipboardText = null; bool clipboardContainsData = false; if (ClipboardEx.ContainsDocument(null)) { clipboardDocument = ClipboardEx.GetDocument(); clipboardContainsData = true; } else if (ClipboardEx.ContainsText(null)) { clipboardText = ClipboardEx.GetText(null); clipboardContainsData = true; } if (!clipboardContainsData) { return; } if (clipboardDocument != null) { RadDocument doc = new RadDocument(); RadDocumentEditor editor = new RadDocumentEditor(doc); editor.InsertFragment(clipboardDocument); doc.Selection.SelectAll(); editor.ChangeFontFamily(new Telerik.WinControls.RichTextEditor.UI.FontFamily("Calibri")); DocumentFragment fragmentFromSelection = doc.Selection.CopySelectedDocumentElements(); this.radRichTextEditor1.RichTextBoxElement.ActiveDocumentEditor.InsertFragment(fragmentFromSelection); } else if (!string.IsNullOrEmpty(clipboardText)) { this.radRichTextEditor1.RichTextBoxElement.ActiveDocumentEditor.Insert(clipboardText); } }
The control renders the list without the indenting that IE and Firefox do. In addition it renders it with to much line spacing. Code to use: <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>
RtfFormatProvider of RadRichTextBox does not recognize zeros at the end of the tags. This leads to incorrect render of tags. For example: tag - \highlight0 is render as highlight with font color instead with transparent highlight color. tag - \b0 is render as a bold text. tag - \i0 is render as italic text. and etc.
I want to insert a bulleted list into a richtextbox at design time. I use the MarkupEditor to get the list in and it displays the text with the proper formatting in the Text property but nothing shows up in the richtextbox itself. Resolution: The feature was introduced in the new version(Q1 2015 SP1) of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.
To reproduce use this code: Section section = new Section(); Table table = new Table(); section.Blocks.Add(table); TableRow row = new TableRow(); TableCell cell = new TableCell(); Paragraph p = new Paragraph(); Span sp = new Span(); sp.Text = "Benefit Start"; sp.UnderlineType = Telerik.WinControls.RichTextBox.UI.UnderlineType.Line; p.Inlines.Add(sp); row.Cells.Add(cell); cell.Blocks.Add(p); table.Rows.Add(row); this.radRichTextBox1.Document.Sections.Add(section); You will see that the text's underlining is wider than it should be. Resolution: This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.
To reproduce: Type something in a RadRichTextBox. Press enter, change the text alignment by using the ChangeTextAlignment method to Center. Continue typing and you will see that the second line is centered relative to the first row. The principle for the other alignment values is the same. Resolution: This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.
ADD. RadRichTextBox - add support for headers and footers Resolution: The Headers and Footers feature is added in the new version of the control. Please use the RadRichTextEditor instead the RadRichTextBox. Please refer to our documentation for more information on the following link: http://www.telerik.com/help/winforms/richtexteditor-features-headers-and-footers.html
FIX. RadRichTextBox - exporting html content from the control to PDF causes parts of the cells content to be drawn outside the cells Resolution: This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.
You will notice that when IsSpellCheckingEnabled property is set to true the scrolling is not smooth. Resolution: This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.
To reproduce: - add a RadRichTextBox and use the following code RadDocument document = null; HtmlFormatProvider provider = new HtmlFormatProvider (); OpenFileDialog openDialog = new OpenFileDialog(); openDialog.Filter = "Documents|*.html"; openDialog.Multiselect = false; DialogResult dialogResult = openDialog.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) { using (FileStream stream = new FileStream(openDialog.FileName, FileMode.Open)) { document = provider.Import(stream); } } this.radRichTextBox1.Document = document; Note: in the html file use the following way of commenting the style tag: <style> <!-- some style content --> </style> Workaround: use the following way of commenting the content: <!--<style> some style content </style>--> Resolution: This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.
FIX. RadRichTextBox - should be able to insert a text to the end of a document, which is not assigned to the control Resolution: This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.
ADD. RichTextBox - add RightToLeft support Resolution: The RightToLeft support is added in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.
RadRichTextBox - Undo command does not work if you insert text through Insert method. Code to reproduce: radRichTextBox1.Document.Insert("Inserted text", radRichTextBox1.CurrentEditingStyle); Work around: 1.Insert text char by char through InputBehavior.ProcessKeyPress method: string text = "Inserted text"; foreach (char ch in text) { radRichTextBox1.RichTextBoxElementrElement.DocumentView.InputBehavior.ProcessKeyPress(new KeyPressEventArgs(ch)); } Resolution: This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox. When call Document.Insert method, still can not undo. To execute commands in an undo scope either use: this.radRichTextEditor1.Commands.InsertTextCommand.Execute("some text", false);
selecting a few lines and choosing the bullet or numbering option. The selected area is having graphical isssues Resolution: This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox.