I have no experience with this TEmbeddedWebBrowser tool, but according to your post, I am thinking of a way to get form fields. When you know what fields it contains, I suppose you can fill them out, since that doesn't look like the purpose of your message.
Assuming the form is declared and reachable: you can capture the form and .elements its collection .elements : easily if it is declared on your page (give it an id attribute, then use document.getElementById() ), it could be do if the form is declared / inside editor.js using document.forms then.
Otherwise: you can get the script dump from the network - this one - and see what is printed when calling (after turning on editor.js naturally) dump(data) or dump(data[body]) . Since data[] used as an argument to rtevalue() called by your onclick submit button, it should contain the key / value pairs of the form. The bad thing about this method is that data[] should be populated with Javascript, so if your form has radio buttons or checkboxes, you can only see selected ones, so I would like to give the first option before trying this trick.
In the comments, you should not directly use innerHTML to insert the HTML subtree into the document as most of the time when it does not work (especially when forms are used), appendChild() redo the work to provide the correct document, for example:
var dummyContainer=document.createElement("span"); var dummyContainer.innerHTML="...";
source share