Completed
Last Updated: 16 May 2017 10:02 by ADMIN
ADMIN
Hristo
Created on: 27 Feb 2017 12:38
Category: RichTextEditor
Type: Bug Report
1
FIX. RadRichTextEditor - mechanism for clearing the loaded custom dictionaries
Workaround: 
private void ClearDictionaries(RadRichTextEditor editor)
{
    var dictionaries = typeof(DocumentSpellChecker).GetField("dictionaries", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(editor.SpellChecker) as Dictionary<CultureInfo, Lazy<IWordDictionary>>;
    dictionaries.Clear();
    var customDictionaries = typeof(DocumentSpellChecker).GetField("customDictionaries", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(editor.SpellChecker) as Dictionary<CultureInfo, ICustomWordDictionary>;
    customDictionaries.Clear();
}
0 comments