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.
When using the "Replace" function or the API, the formatting of the replaced word is lost. Note: Using "Replace All" does not reset the formatting. Steps to reproduce: 1. Enter the text "The quick brown fox" in a document 2. Apply formatting to the word "brown" (eg, make it bold) 3. Perform a find/replace on the word brown (eg, replace with blue) using "replace", not "replace all" 4. The formatting of the word is reset (it's no longer bold)
Having two mention providers and using the second right after using the first one actually loads the source of the first provider.
- There should be a formatting symbol for the character - Pressing Ctrl+Shift+Space should insert the character (standard MS Word shortcut) - Import from docx should be implemented - The symbol should be treated as a separator between words when spell-checking