<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>
&nbsp;&nbsp;&nbsp; To allow javascript we should switch off design mode, but know it&#39;s
hard to do, because all selections events <br>
&nbsp;&nbsp;&nbsp; processing throw nsISelectionController which can be obtained only
if we switch mozilla in design mode. </div></blockquote><div><br>Where is &quot;design mode&quot; 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>
&nbsp;</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&#39;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&#39;t execute javascript at all, I guess it doesn&#39;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,&nbsp; because&nbsp; we can modify dom using js, and using <br>
xpcom, there then&nbsp; many questins how to map elements from source and
visual part&nbsp; 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&#39;s sounding more and more like it would be better to try and approach this using Rhino. I&#39;d still like to fiddle with the design mode to see what I can accomplish though, any pointers to source code?<br>
</div>