<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#ffffff" text="#000000"><div class="Ih2E3d">
<blockquote type="cite"><div dir="ltr">
Maxim/Sergey, any pointers?<br>
</div>
</blockquote></div>
1)For know we are not support execution of java script in visual editor.<br>
To allow javascript we should switch off design mode, but know it's
hard to do, because all selections events <br>
processing throw nsISelectionController which can be obtained only
if we switch mozilla in design mode. </div></blockquote><div><br>Where is "design mode" turned on and off? So if I understand correctly ... taking the Mozilla renderer out of design mode turns off the propogation of nsISelectionController events?<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#ffffff" text="#000000"><br>
2) possibly JavaScript that inserted into head node doesn't be executed
automatically, because browser executes this scripts <br>
when documents are loaded. When we insert it into DOM, document already
loaded.</div></blockquote><div><br>This sounds right, but if I can't execute javascript at all, I guess it doesn't matter? =)<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><br>
<br>
PS. Using of JavaScript in Visual Editor can strongly change the
process handling, because we can modify dom using js, and using <br>
xpcom, there then many questins how to map elements from source and
visual part and others.<span style="color: rgb(128, 128, 128);"></span>
</div></blockquote></div><br>Very true.. Our problem is that the appcelerator platform uses javascript code to render widgets.. it's sounding more and more like it would be better to try and approach this using Rhino. I'd still like to fiddle with the design mode to see what I can accomplish though, any pointers to source code?<br>
</div>