[英]check with spell checker control in smith html editor
我正在使用史密斯html編輯器來控制舊版本(1.0.0.0)。 史密斯html編輯器中是否有任何最新版本。 如何在編輯器窗口中使用拼寫檢查器控件添加。 你能給我快速答復嗎.....
如果您有源代碼,則可以在下面的代碼中進行更改,並進行拼寫檢查。
在HtmlEditor.xaml.cs文件中,添加以下行
VisualEditor.Document.Body.SetAttribute("spellcheck", "true");
在OnVisualEditorDocumentNavigated方法中
private void OnVisualEditorDocumentNavigated(object sender, System.Windows.Forms.WebBrowserNavigatedEventArgs e)
{
VisualEditor.Document.ContextMenuShowing += this.OnDocumentContextMenuShowing;
htmldoc = new HtmlDocument(VisualEditor.Document);
//((IHTMLDocument2)VisualEditor.Document.DomDocument).designMode = "ON";
SetStylesheet();
SetInitialContent();
VisualEditor.Document.Body.SetAttribute("contenteditable", "true");
VisualEditor.Document.Body.SetAttribute("spellcheck", "true");
VisualEditor.Document.Focus();
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.