Ignore:
Timestamp:
05/19/05 15:28:30 (15 years ago)
Author:
gogo
Message:
  • Minor comment changes.
  • Refactor events for form submit, reset and window unload
  • Fix reset handler to properly use the original textarea content
  • Minor changes to setHTML etc
  • Use onload for iframe to determine when to initIframe, instead of a timeout
  • Remove overlooked debugging statement in loadPlugins
  • Change some event registrations to use addDom0Event rather than element.onxxx = something
  • Add HTMLArea.flushEvents() as an implementation of #30 - sadly, doesn't work. This is not enabled in the full_example, use examples/testbed.html to test it out.
  • Added methods HTMLArea.addDom0Event and HTMLArea.prependDom0Event which are to be used instead of element.onxxxxx = something;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/full_example-body.html

    r166 r177  
    6060       'TableOperations' 
    6161      ]; 
     62 
    6263             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
    6364             if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return; 
     
    132133</head> 
    133134 
    134 <body onload="xinha_init()"> 
     135<body> 
    135136 
    136   <form id="editors_here"> 
     137  <form id="editors_here" onsubmit="alert(this.myTextArea0.value);"> 
    137138    <textarea id="myTextArea" name="myTextArea" rows="10" cols="80" style="width:100%"></textarea> 
    138139    <textarea id="anotherOne" name="anotherOne" rows="10" cols="80" style="width:100%"></textarea> 
Note: See TracChangeset for help on using the changeset viewer.