The cell BackColor should be set when setting the paragraph BackColor.
Workaround: use the table properties dialog to set the back color.The paragraphs in the table are inheriting the negative indent from the previous paragraph.
Workaround: Manually remove the negative indent from the table paragraphs after the table is added.
The workaround in code:
private void RadRichTextEditor1_CommandExecuted(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutedEventArgs e)
{
if (e.Command is InsertTableCommand)
{
var table = radRichTextEditor1.Document.CaretPosition.GetCurrentTable();
table.TableIndent = 0;
if (table != null)
{
foreach (var row in table.Rows)
{
foreach (var cell in row.Cells)
{
foreach (var block in cell.Blocks)
{
var paragrpah = block as Paragraph;
if (paragrpah != null && paragrpah.LeftIndent < 0)
{
paragrpah.LeftIndent = 0;
paragrpah.HangingIndent = 0;
}
}
}
}
}
radRichTextEditor1.RichTextBoxElement.Document.UpdateLayout();
}
}
Hi,
Font size in ribbon does not change to the font size of custom style.
See attached video and c# project.
Best regards,
Ziping Wang
Please refer to the attached IncorrectImageResizing.gif illustrating how to reproduce the problem with the Demo application.
Workaround: feel free to resize the image via the mouse cursor.
Invalid table layout when resizing a row on the second page
To reproduce:
- Add a table with several rows so there are some rows on the second page.
- Resize a row on the second page with the mouse.
Result: The table layout is not correct after the resize operation
When importing an HTML file which contains table should align table cell content left and middle. Instead, it aligns them left and top.
Both browsers and MS Word center the content.
Hi,
Please look at the screen. when we load the attached email in Editor, bullet points are repeating.
Regards,
Nitin Jain
Hi,
Please look at the attached html. when we load the attached HTML in Editor the last line appear like this. however when i open the same html in browses it looks fine. I have set the "text align" to justify and this is one of my requirement.
Please refer to the attached gif file illustrating better how to replicate the undesired behavior.
1. If you right-click, the Copy and Cut context menu items are disabled - OK
2. If you select some text and right-click, the Copy and Cut context menu items are enabled - OK.
3. If you select some text and right-click very fast, sometimes Copy and Cut are disabled. Even there is cases in which Cut is enabled and Copy is disabled.
Workaround: please ensure that you select the text first and then right-click to trigger the context menu.
Run the Word-inspired project. Select the one whole paragraph, right below the Overview header, but so that caret is at the beginning of the next paragraph. Change text alignment to Justify. Then try to change text alignment to Left. It will not turn back to Left. Probable reason is that caret is at beginning of the next paragraph whose alignment is Left, so app thinks it should change it to Justify instead. This over-eagerness is described in forum thread ChangeParagraphTextAlignment is over-eager to change alignment. But in this case there is no workaround.
The solution is to set the value instead of toggle it, like the Word does. If text alignment was Left then setting to Left should again set it to Left. Also, caret position should not change the outcome of the action. Only the contents of the selection is relevant in deciding if action can be safely skipped.
The customers need to convert the position to an integer number representing the offset of the current position from the first position in the document. A method returning the position at a specified offset would be useful as well.
Some voice recognition software (Nuance) is using integer positions as well.
In MS Word, MS RichTextBox and DevExpress RichTextBox, the positions are represented as integer numbers.