Working with the RadContextMenu that comes from the RadRichTextBoxUI, when having analytics enabled, produces a NullReferenceException.
Manually set the Menu property on the PreviewMouseLeftButtonUp event of the RadMenuItem:
static MainWindow()
{
EventManager.RegisterClassHandler(typeof(RadMenuItem), PreviewMouseLeftButtonUpEvent, new MouseButtonEventHandler(OnRadMenuItemPreviewMouseLeftButtonUp), true);
}
private static void OnRadMenuItemPreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
RadMenuItem radMenuItem = (RadMenuItem)sender;
RadContextMenu radContextMenu = radMenuItem.ParentOfType<RadContextMenu>();
if (radContextMenu != null)
{
PropertyInfo menuPropertyInfo = radMenuItem.GetType().GetProperty("Menu", BindingFlags.Public | BindingFlags.Instance);
if (menuPropertyInfo != null)
{
MethodInfo setMethod = menuPropertyInfo.GetSetMethod(true);
if (setMethod != null)
{
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
{
setMethod.Invoke(radMenuItem, new object[] { radContextMenu });
}), System.Windows.Threading.DispatcherPriority.Background);
}
}
}
}
When creating a hyperlink from selected text using the InsertHyperinkDialog, trailing spaces shouldn't be included in the hyperlink, as in MS Word.
Implement API for hiding built-in styles from StylesGallery. This should be useful, as currently all built-in styles are visible by default, and the only way to hide them is to include them in the document as set Primary to false.
The tooltip shown when hovering the styles in the ManageStylesDialog lists some unrelated values and should be revised.
Styles from RTF are incorectly copied to RRTB.
When you click for second time the caret locates in the correct position. I.e. there are needed 2 clicks before first line of paragraph which starts with bookmark to set the correct caret position. It also cause the problem of incorrect selection which will select the previous paragraph. This is because bookmarks essentially don't have position before them.
The time it takes to apply highlighting to a document in Flow layout mode is more than expected. See ticket 555863 for a sample project and document.
Steps to reproduce: 1. Type a long word in the editor. The word must be longer than the width of the page. 2. Set a hanging indent different than the default one. 3. Select part of the word starting from the beginning of the paragraph. 4. Add an annotation range, e.g. a Comment Result: The hanging indent is not properly reflected in the editor.
After you have inserted a new row from the context menu of the RadRichTextBox, it becomes selected and then if you want to add a new row from the context menu again, the option is disabled. You should be able to add a new row, so the insert command must be enabled.
A "FontSize" setting cannot be applied to multiple paragraphs when the font size of the character at the beginning of selection is equal to the value which is going to be set. Update: the issue is duplicate of http://feedback.telerik.com/Project/143/Feedback/Details/173836 . The fix will be included in 2016 Q1.
The spellchecker does not recognize words with non-breaking spaces between them as separate.
A workaround when pasting text into the RadRichTextBox is to subscribe to the CommandExecuting event of the control, get the paste text from the clipboard and replace all non-brekaing spaces with spaces.
private void editor_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
if (e.Command is PasteCommand)
{
var pasteText = Clipboard.GetDataObject().GetData("HTML Format") as string;
if (pasteText != null)
{
pasteText= pasteText.Replace(" ", " ").Replace(' ',' ');
var originalDataObject = Clipboard.GetDataObject();
DataObject dataObject = new DataObject();
foreach (string format in originalDataObject.GetFormats())
{
dataObject.SetData(format, originalDataObject.GetData(format));
}
dataObject.SetData("HTML Format", pasteText);
Clipboard.SetDataObject(dataObject);
}
}
}
Currently, CopyHyperlink command (Context menu over hyperlink -> Copy Hyperlink) puts hyperlink text in plain text format in the clipboard. Instead, it should put the URI. This way when the user pastes in a plaint text editor, they will get the URI. Workaround: The user could copy the text from the Edit Hyperlink dialog instead.
The issue is reproduced with Marathi IME. Type some letters, press and release shift, then press space. The result is that the current IME text is duplicated.
When document model is used in multi-threaded scenario, all image sources need to be frozen. Expose a method that does that out of the box. Workaround: Solution with the public API available is in the attached freezeImagesInRadDocument.zip.
The fix will be available in our official release 2015 Q1 .