For webkit.net use please see here http://www.cnblogs.com/linyijia/p/4045333.html
Nicedit Editor please download the 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); }
Need to change the path, the space also to transcode
Take Nicedit as an example, the following is the index.html code, there are two new methods, GetData (value), SetData (Assignment)
C # uses code to value and assign values
Assignment (because the Invokescriptmethod method cannot take parameters, use the following method instead):Webkitbrowser1.stringbyevaluatingjavascriptfromstring ("SetData (' SDFSD ')");
Value:
Loading the HTML editor with webkit.net