c# - WPF WYSIWYG Editor -
I have controlled a wysiwyg editor as a standard C # programmable window. I would like to leave WPF to do the same thing.
In my old application I did something like this.
Using mshtml; Private IHTMLDocument2 Doctor; ... HTMLeditor.DocumentText = " body Doctor = HTMLeditor.Document.DomDocument IHTMLDocument2; Doc.designMode = "ON"; Who allowed the document to be used on the editor.
How is this done in WPF? It does not appear that WebBozer controls design modes in WPB.
Thank you!
Try this:
public MyControl () {InitializeComponent () ; Editor. Regular + = New NavigatedEventHandler (editor_regulated); Editor.NavigateToString ("& lt; html> "); } Zero edit_native (object sender, navigation event events e) {var doc = editor.document IHTMLDocument2; If (doctor! = Null) doc.designMode = "ON"; } Edit: Where the editor is a web browser control.
Comments
Post a Comment