Problems using setHTML(...) to insert text from BLOCKED SCRIPT
It seems like the editor loads the html into previewmode instead of normalmode, even as the tab shows normal.
The problem appears when loading html that has a table included. At first, no dotted lines appear around the tablecells. But if I go on to selecting the code tab, and then go back to the normal tab again the dotted lines appear.
The
http://cutesoft.net/example/JavaScript-API.aspx sample shows the same behaviour. If I type something like ‘<table><tr><td>hello</td></tr></table>’ into the textarea and then push the setHtml button, the word hello shows in the editor but no dotted lines marking the table borders. If I switch to code and then back to normal, then the lines are visible.
Am I going about this the wrong way, or is there something I can do to correct this besides manually switching the tabs?
The proper behaviour is vital to our application.