Use WebKit.net to load the HTML editor and webkit.net editor.
Reference page:
Http://www.yuanjiaocheng.net/CSharp/csharprumenshili.html
Http://www.yuanjiaocheng.net/CSharp/csharp-class.html
Http://www.yuanjiaocheng.net/CSharp/csharp-variable.html
Http://www.yuanjiaocheng.net/CSharp/Csharp-data-types.html
Http://www.yuanjiaocheng.net/CSharp/cshart-value-reference-type.html
For webkit.net usage please refer to here http://www.cnblogs.com/linyijia/p/4045333.html
Nicedit editor Please download http://www.nicedit.com/download.php here
private void Form1_Load(object sender, EventArgs e) { string url = String.Format(@"file:\\\{0}nicedit\index.html", AppDomain.CurrentDomain.BaseDirectory); url = url.Replace("\\", "/").Replace(" ","%20"); webKitBrowser1.Navigate(url); }
You need to modify the path and transcode the space.
Taking niceditas an example, the following is the index.html code. Two methods are added, getData (value) and setData (Value assignment)
Valid value:
MessageBox.Show(webKitBrowser1.Document.InvokeScriptMethod("getData").ToString());