How to access nsIHTMLEditor interface in GeckoFX?
I am trying to make a WYSIWYG HTML-editor by embedding GeckoFX in a Windows Forms application in VB.NET. The code goes like this: Dim Gbrowser As New GeckoWebBrowser Gbrowser.Navigate("about:blank") ... Gbrowser.Navigate("javascript:void(document.body.contentEditable='true')") How can I activate and access the nsIHTMLEditor interface from within my application? Thank you. UPDATE This code does not work: Dim hEditor As nsIHTMLEditor hEditor = Xpcom.GetService(Of nsIHTMLEditor)("@mozilla.org/editor/htmleditor;1") hEditor = Xpcom.QueryInterface(Of nsIHTMLEditor)(hEditor) hEditor.DecreaseFontSize(