Diff for /bbecontainer/www/adjust_editor.html between versions 1.1 and 1.2

version 1.1, 2009/11/03 13:21:51 version 1.2, 2009/12/31 07:09:37
Line 1 Line 1
 <html>  <html>
 <head>  <head>
   
 <style>  <style>
 div h3 { margin:11px 5px 6px 5px;font-size:14px; }  div h3 { margin:11px 5px 6px 5px;font-size:14px; }
 .inserted_code {  .inserted_code {
Line 28  some code has to be inserted it.<br> Line 27  some code has to be inserted it.<br>
         /*location:global*/<br>          /*location:global*/<br>
                 </span>                  </span>
       
        <pre class="inserted_code">function getElem(name) {return document.getElementById(name)}<br>function gen_event(target,evt_name,args)<br>{<br>    var evt=document.createEvent("HTMLEvents")<br>    evt.initEvent(evt_name,false,false);<br>  if(args) <br>           for(var i in args) {if(!evt[i]) {evt[i]=args[i];}}<br>    target.dispatchEvent(evt);<br>}<br>  function content_load_handler(evt)<br>  {var control_point=evt.target,editor=document.getElementById( evt.target.getAttribute("ctl_id")  )<br>   var data=control_point.getAttribute("data")<br> <br>    if (<span style="color: rgb(0, 128, 0);">/*the editor is not in graphic mode*/</span>)&nbsp;&nbsp;&nbsp;<span style="color: rgb(0, 128, 0);">/*switch the editor to graphic mode*/</span>;<br>             editor.contentDocument.open("text/html");<br>           editor.contentDocument.write( data);<br>                editor.contentDocument.close();<br>     gen_event(editor,"set_base_url",{base_url:control_point.getAttribute("base_url")})<br>  }<br><br>        </pre>        <pre class="inserted_code">function getElem(name) {return document.getElementById(name)}<br><br>function gen_event(target,evt_name,flg_bubble,rnode,strings)<br>{<br>    var evt=document.createEvent("MutationEvents")<br>    if (!strings) { strings=[]; }<br>    evt.initMutationEvent(evt_name,(flg_bubble)?true:false,false,rnode ,strings[0],strings[1],strings[2],evt.MODIFICATION);<br>    target.dispatchEvent(evt);<br>  return document.getElementById( getElem('control_point').getAttribute("val") )<br>}<br><br> function content_load_handler(evt)<br>  {<br>        var control_point=evt.target,editor=document.getElementById( evt.target.getAttribute("ctl_id") )<br>   var data=control_point.getAttribute("data")<br> <br>    if (<span style="color: rgb(0, 128, 0);">/*the editor is not in wysiwyg mode*/</span>)&nbsp;&nbsp;&nbsp;<span style="color: rgb(0, 128, 0);">/*switch the editor to </span><span style="color: rgb(0, 128, 0);">wysiwyg </span><span style="color: rgb(0, 128, 0);">mode*/</span>;<br>              editor.contentDocument.open("text/html");<br>           editor.contentDocument.write( data);<br>                editor.contentDocument.close();<br>     gen_event(editor,"set_base_url",true)<br>  }<br>    </pre>
 </div>  </div>
   
   <div style="margin-left: 15px;">    <div style="margin-left: 15px;">
Line 62  which has the following attributes: Line 61  which has the following attributes:
     <!-- For general site related questions or comments, -->      <!-- For general site related questions or comments, -->
     For questions or comments <em>not</em> about a specific project,      For questions or comments <em>not</em> about a specific project,
     please read our <a href="http://www.mozdev.org/feedback.html">feedback</a> page.<br>          please read our <a href="http://www.mozdev.org/feedback.html">feedback</a> page.<br>    
    <a href="http://www.mozdev.org/copyright.html">Copyright</a> &copy; 2009. All rights reserved.     <a href="http://www.mozdev.org/copyright.html">Copyright</a>  2009. All rights reserved. 
     <a href="http://www.mozdev.org/community/terms.html">Terms of Use</a>.      <a href="http://www.mozdev.org/community/terms.html">Terms of Use</a>.
 </p>  </p>
 <!-- *** *********** *** -->  <!-- *** *********** *** -->

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>