Ignore:
Timestamp:
05/18/05 21:15:06 (15 years ago)
Author:
yermol
Message:

htmlarea.js

. added workaround fix for NASTY FIREFOX BUG resulting in the infamous

uneditable area problem (exception on designMode="on" issue -
refer to bug:


https://bugzilla.mozilla.org/show_bug.cgi?id=207842


and this thread:


http://xinha.gogo.co.nz/punbb/viewtopic.php?id=229


. trailing <BR>'s are no longer stripped out of the document. This

was wreaking havoc on EnterParagraphs?. It's not clear whether or not
this is going to have unanticipated side-effects.

plugins/EnterParagraphs/enter-paragraphs.js

NOT FULLY FUNCTIONAL YET - DOESN'T HANDLE ALL CASES CORRECTLY,
but it's much better than it was I think.

. largely reworked.
. changed obfuscated variables names to make it more readable.
. expanded out nested (x ? y : z) constructs to make it more readable.
. added alot of comments.
. fixed a serious bug in findEachNodeUnder() that was not correctly

handling beginning and end node conditions.

. fixed design flaw that selected a non-existent insertion point for

placing the cursor.

. fixed several exceptions.
. now correctly handles lists by passing the back back to the Gecko

engine if we are in a list with the exception of being at the
first position in the first element in which case we insert
a paragraph before the list and move the cursor back to the first
item on the list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/unified_backend/examples/full_example-body.php

    r121 r172  
    180180    } 
    181181 
    182     window.onload = xinha_init; 
     182    // calling xinha_init twice can cause a nasty little exception. 
     183    // window.onload = xinha_init; 
     184 
    183185  </script> 
    184186</head> 
     
    204206    ---------------------------------------------------------------------------> 
    205207 
    206         <div id="lipsum" style="display:none"> 
     208    <div id="lipsum" style="display:none"><h1>TEST</h1></div> 
     209 
     210        <div id="lipsumx" style="display:none"> 
    207211          <p>This is an example of a Xinha editor with extensive trace messages 
    208212                         turned on. To turn off trace messages, assuming you have the source, just 
     
    228232                         file from the Xinha_ub branch.</p> 
    229233        </div> 
     234 
    230235        <script src="full_example.js"></script> 
    231236 
Note: See TracChangeset for help on using the changeset viewer.