我有使用 DevExpress ASP.NET MVC HTMLEditor 的 MVC 项目。编辑器处于局部视图中,在回调时呈现。这是拼写检查初始化设置:
@Html.DevExpress().HtmlEditor(
settings =>
{
settings.SettingsSpellChecker.Culture = new System.Globalization.CultureInfo("en-us");
ASPxSpellCheckerISpellDictionary dictionary = new ASPxSpellCheckerISpellDictionary();
dictionary.AlphabetPath = "~/Content/Dictionaries/EnglishAlphabet.txt";
dictionary.GrammarPath = "~/Content/Dictionaries/english.aff";
dictionary.DictionaryPath = "~/Content/Dictionaries/american.xlg";
dictionary.CacheKey = "ispellDic";
dictionary.Culture = new System.Globalization.CultureInfo("en-us");
dictionary.EncodingName = "Western European (Windows)";
settings.SettingsSpellChecker.Dictionaries.Add(dictionary);
...
settings.Toolbars.Add(toolbar =>
{
toolbar.Items.Add(new ToolbarCheckSpellingButton(true));
...
}
}).GetHtml()
但是当我按下“检查拼写”按钮时,编辑器不会执行任何操作(只是发送回调以重新渲染部分视图)并且 js 控制台中没有错误。
是否有其他选项可以启用我忘记检查的拼写检查?