Some dialogs like ParagraphPropertiesDialog and SectionColumnsDialog have dependency properties for defining the width of the numerics. When creating implicit style, the value of these custom properties results in 0 and they are invisible in the UI.
Workaround: Set the value of the property in the custom style. For paragraph properties dialog:
<Style TargetType="rtb:RadParagraphPropertiesDialog" BasedOn="{StaticResource CustomStyle}" >
<Setter Property="NumericWidth" Value="85"/>
</Style>
Add dialog previewing how the content of the RadRichTextBox would be printed according to the current settings. Workaround: Currently this could be implemented with the public API using separate RadRichTextBox in a window.
Using the microsoft word,In docx document,inserting a shape,and add the text context to the shape,then save.
when radrichtextbox open the file,the program crashed.
In this feature, the existing text is overridden as the user types on it with the "Insert" key is pressed on the keyboard.
Workaround: Track the state of the Insert key and delete before inserting content using the KeyDown and CommandExecuting events:
private void MainDemoControl_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
{
if (e.KeyboardDevice.IsKeyToggled(Key.Insert))
{
this.isInsertKeyPressed = true;
}
else
{
this.isInsertKeyPressed = false;
}
}
private void radRichTextBox_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
if (e.Command is InsertTextCommand && this.isInsertKeyPressed)
{
this.radRichTextBox.Delete(false);
}
}
The issue is observed when the added table is preceded by a paragraph with a font size different from the default one. As the issue is caused by a broken mouse capture, the following workaround can be employed:
someRandomFrameworkElement.CaptureMouse();
someRandomFrameworkElement.ReleaseMouseCapture();
When a whole paragraph is selected and the Set Numbering Value command is executed, the numbering value of the next paragraph is changed instead of the current one.
Workaround: Clear the selection prior to executing the command:private void radRichTextBox_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
if (e.Command is ShowSetNumberingValueDialogCommand)
{
this.radRichTextBox.Document.CaretPosition.MoveToPosition(this.radRichTextBox.Document.Selection.Ranges.First.StartPosition);
}
}
Form fields are the legacy way to insert an editable controls in a document (text boxes, checkboxes, dropdowns) by using the FORMTEXT, FORMCHECKBOX and FORMDROPDOWN fields. This includes the legacy Frames (described in OOXML with 'framePr' element). Do not confuse with content controls (structured document tags) (see http://feedback.telerik.com/Project/143/Feedback/Details/113730 ) and with ActiveX controls.
When a symbol is inserted, the font family of RichTextBox is set to the symbol's font family. Workaround: Create a custom InsertSymbolDialog. The font family could be persisted in the Show() method of the new dialog and reset when the dialog is closing. Attached is a sample project demonstrating the workaround.
All bullet list levels are exported to HTML with list-style-type:disc. Instead, they should be exported with list-style-type:disc, list-style-type: circle;, and list-style-type: square; depending on the level - Level 1,4,7 are with disc, level 2,5,8 are with circle, and level 3,6,9 are with square for the default bullet list type. Note: There are more problems with the HTML export/import roundtrip in this use case: - indents FirstLineIndent, RightIndent, Left are set locally - this prevent the expected changing of indent when changing the list level. - formatting of the bullet (font for example) is set to the paragraph. Steps to reproduce: - Add bullet list with three levels. - Export to HTML. Expected: The browser show the list preserving the bullet styles. Actual: The browser visualizes the list with different bullet styles.