Add API for switching the flow direction of RadRichTextBox dialogs and mini tool bars. Currently this could be changed manually using the FlowDirection property, for example: (this.radRichTextBox.ImageEditorDialog as ImageEditorDialog).FlowDirection = FlowDirection.RightToLeft; but the result could be unexpected for Right-to-left.
When mouse is over selected text, the cursor should be changed to Arrow.
When an IncludePictureField is selected, the ImageMiniToolBar should be shown.
When a table is preceded by several paragraphs last of which is empty, selecting more than one of those paragraphs and the table excludes the empty paragraph from the selection. Steps to reproduce: - Add paragraph with text, followed by empty paragraph, followed by table 2x2. - Select from the beginning of the document to the last table cell (Note that the paragraph after the table is not included in the selection) - Copy the content and paste it in the document below. - The empty paragraph is not present in the pasted content, as it is excluded from the selection.
There is already Author property but it is not filled automatically. It should be filled using the RequestCurrentUserInfo event of the RadDocument, which is currently only used for track changes revisions.
Performance of scrolling and editing is diminished when Track changes are enabled. Issue seems to be related to RevisionsToolTipLayer and occurs when more than a couple of paragraphs are inserted in the same revision. Workaround: remove the UI layer responsible for tooltips of revisions. [CustomUILayersBuilder] public class CustomLayersBuilder : UILayersBuilder { protected override void BuildUILayersOverride(IUILayerContainer uiLayerContainer) { uiLayerContainer.UILayers.Remove(DefaultUILayers.ToolTipLayer); } }
Text containing mixed Right-to-Left and Left-to-Right parts are visualized incorrectly - some of the punctuation marks swap their places. Partial workaround: Use RadRichTextBox's TextRenderingMode = TextBlockWithPropertyCaching. This mode also has problems, but it works in some cases.
In RadRichTextBox, when i export pdf in memorystream Footers are spread.
On export to HTML tab stops are converted to non-breaking spaces ( ). Sometimes the width of the all nbsp-s becomes different than the width of the tab stop. When document which contains grid-like data is exported to HTML its columns are not aligned.
When a field result fragment has multiple lines only the first and the last paragraph get the proper paragraph style properties.
If the document contains a simple field without run inside, the import process fails. <w:fldSimple w:instr="page" w:dirty="true"/> The same document with a run inside the field does not cause an error <w:fldSimple w:instr="page" w:dirty="true"> <w:r> <w:t>1</w:t> </w:r> </w:fldSimple>
When importing image with invalid ur/base64 encoded data the document won't be opened correctly and an exception will be thrown. Load default image instead of throwing exception and failing to open the document.
When floating image is all of the following: - is anchored to paragraph inside a table with negative offset. - is with text wrapping "Behind text" or "In front of text" it should be positioned outside of the table. Currently the image is always positioned fully inside the table.
Import the type of the <ul> and <ol> tag, e.g. <ul type="disc"> or <ul type=circle>. Supported values are disc, circle, square.
Introduce Split Table Command.
In MS Word, the command is in Table Tools -> Layout -> Merge -> Split table.
Workaround: Use the RadDocumentEditor API to split the table:
var tableRowBox = this.radRichTextBox.Document.CaretPosition.GetCurrentTableRowBox();
if (tableRowBox != null)
{
this.radRichTextBox.BeginUndoGroup();
this.radRichTextBox.Document.Selection.Clear();
var currentRow = tableRowBox.AssociatedTableRow;
DocumentPosition start = new DocumentPosition(currentRow.GetRootDocument());
start.MoveToStartOfDocumentElement(currentRow);
DocumentPosition end = new DocumentPosition(start);
end.MoveToEndOfDocumentElement(currentRow.Table.Rows.Last);
this.radRichTextBox.Document.Selection.SetSelectionStart(start);
this.radRichTextBox.Document.Selection.AddSelectionEnd(end);
this.radRichTextBox.Cut();
this.radRichTextBox.InsertParagraph();
this.radRichTextBox.Paste();
this.radRichTextBox.EndUndoGroup("Split table");
}
When image watermark is set and its height is configured through DocumentWatermarkSettings.ImageSettings.Size.Height, the height is not respected. Steps to reproduce: 1. Insert a Watermark with size var watermarkSettings = new DocumentWatermarkSettings() { Type = WatermarkType.ImageWatermark, ImageSettings = new WatermarkImageSettings() { UriSource = new Uri("c:\1.jpg"), Size = new Size(200, 300) } }; Expected: The image is with the specified width and height. Actual: The height is different.
The width of the image is inherited from the table element it is in when it doesn't have a specific width set to it. Sample HTML reproducing the problem is: <html> <body> <table style="width: 700px;"> <tbody> <tr> <td> <img src="" /> </td> </tr> </tbody> </table> </body> </html> Instead, the real size of the image should be used. Workaround: Subscribe to LoadImageFromUri and set size to the image. settings.LoadImageFromUrl += (s, arg) => { if (arg.Url != null) { string extension = Path.GetExtension(arg.Url); Uri uri = new Uri(arg.Url, UriKind.RelativeOrAbsolute); System.Net.WebClient oWebClient = new System.Net.WebClient(); using (MemoryStream stream = new MemoryStream()) { oWebClient.OpenRead(uri).CopyTo(stream); arg.ImageElement.Init(stream, extension); arg.ImageElement.Size = new Size(164, 80); e.Handled = true; } } };