>><span id="fieldid" class="mergefield">Field name</span> >>>>in the document that the editor will not change? If so, you could pre- or post-process your document and fill in the fields according to their ids.
LOCAL HTMLSource AS String TEXT TO m.HTMLSource NOSHOW FLAGS 1 <html> <head> <title>A document</title> <style>.field {color: red}</style> </head> <body> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <span id="field001" class="field">Field #1</span> Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </body> </html> ENDTEXT STRTOFILE(m.HTMLSource, "wm.html") LOCAL Browser AS BrowserForm m.Browser = CREATEOBJECT("BrowserForm") m.Browser.Show() WAIT WINDOW "Load the document..." m.Browser.LoadDocument(FULLPATH("wm.html")) WAIT WINDOW "Set the field value..." m.Browser.ProcessField("field001", "Walter") WAIT WINDOW "Done!" DEFINE CLASS BrowserForm AS Form ADD OBJECT HtmlViewer AS OleControl WITH Width = This.Width, Height = This.Height, OleClass = "Shell.Explorer" PROCEDURE Init This.HtmlViewer.Navigate2("about:blank") ENDPROC PROCEDURE LoadDocument (Document AS String) This.HtmlViewer.Navigate2(m.Document) ENDPROC PROCEDURE ProcessField (FieldId AS String, FieldValue AS String) This.HtmlViewer.Document.getElementById(m.FieldId).innerText = m.FieldValue ENDPROC ENDDEFINE