protected override SpellCheckerCustomDictionary CreateCustomDictionaryCore()
        {
            ASPxSpellCheckerCustomDictionary customWebDictionary = new ASPxSpellCheckerCustomDictionary();

            customWebDictionary.CacheKey = customWebDictionary.GetType().Name;
            spellCheckerToWebDictionaryMap.Add(customWebDictionary.Dictionary, customWebDictionary);
            return(customWebDictionary.Dictionary);
        }
Esempio n. 2
0
    protected void myHtmlEditor_Load(object sender, EventArgs e)
    {
        ASPxHtmlEditor htmlEditor = (ASPxHtmlEditor)sender;

        ASPxSpellCheckerCustomDictionary userDictionary = (ASPxSpellCheckerCustomDictionary)htmlEditor.SettingsSpellChecker.Dictionaries[1];

        userDictionary.CacheKey       = string.Format("dic_{0}", UserName);
        userDictionary.DictionaryPath = string.Format("~/CustomDictionaries/{0}.dic", UserName);
    }