The GetSupportedExtensions method of DocumentFormatProvidersManager throws NullReferenceException when invoked.
Workaround:
HashSet<string> supportedExtensions = new HashSet<string>();
foreach (var provider in DocumentFormatProvidersManager.FormatProviders)
{
foreach (var extension in provider.SupportedExtensions)
{
supportedExtensions.Add(extension);
}
}
Bookmarks are not imported and missing from a specific document scenario.
Workaround: Import and then export the document using the WordsProcessing library and then open it with the editor.
When inserting a content control (structured document tag) into an empty RadDocument using one of the overloads of the InsertStructuredDocumentTag method accessible from RadRichTextBox and RadDocumentEditor, a NullReferenceException is thrown.
Workaround: Invoke the EnsureDocumentMeasuredAndArranged method before inserting the content control:
document.EnsureDocumentMeasuredAndArranged();
RadDocumentEditor editor = new RadDocumentEditor(document);
editor.InsertStructuredDocumentTag(SdtType.CheckBox);
When the unit type is set to an inch:
Expected: to could be able to place the RulerThumb on every 1/16 of an inch.
Actual: be able to place the RulerThumb to every 1/8 of an inch.
When the Track Changes is activated, a Hyperlink is inserted to a text and we try to reject changes the rejection is not applied correctly.
The result:
When the Track Changes is On and we try to change the style it applies the first time but the second try throws an exception and the style doesn't apply: System.ArgumentNullException: 'Value cannot be null. Parameter name: owner'.
1. Add new text "TEST".
2. Select the text and set a new style "Heading 2", then "Heading 1".
Observed: Heading 1 doesn`t appear.
Currently, there is a DocumentHistory property IsEnabled indicating whether the history for the RadDocument is enabled. This property is not working and history cannot be disabled.
Workaround:
Use DocumentHistory Clear() method by attaching to editor's CommandExecuted event.
private void Editor_CommandExecuted(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutedEventArgs e)
{
editor.Document.History.Clear();
}
Steps to reproduce:
The pasted content is not formatted properly, resulting in an InvalidOperationException("'Token EndElement in state EndRootElement would result in an invalid XML document. Make sure that the ConformanceLevel setting is set to ConformanceLevel.Fragment or ConformanceLevel.Auto if you want to write an XML fragment. ') when saving the content to DOCX.
Steps to reproduce:
Workaround: intercept the table paste and add an empty paragraph as the first element of the document before the table.
Another case: