kin%netscape.com 7f79330aa2 Fix for blocker bug 126770 (Undo/Redo doesn't work in Text widgets, Composer, and Mail)
mozilla/editor/txmgr/src/nsTransactionManager.cpp
  mozilla/editor/txmgr/src/nsTransactionStack.cpp

    - nsTransactionStack::Peek() was intended to return NULL for
      an empty stack so I changed timeless' change for bug 114166
      to return NS_OK and init the return value to zero.

    - timeless also changed the behavior of nsDeque::End(), it no
      longer returns an interator that is one past the end. So
      nsTransactionStack::Peek() had to call CurrentItem() instead
      of operator--.

    - I also backed out the changes made to nsTransactionManager.cpp
      cause they are unnecessary with the changes made to
      nsTransactionStack::Peek() above.

r=timeless@bemail.org  sr=hyatt@netscape.com  a=leaf@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@115118 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 23:22:31 +00:00
..
2002-02-06 22:19:07 +00:00

<html>
<!-- 
   - The contents of this file are subject to the Netscape Public
   - License Version 1.1 (the "License"); you may not use this file
   - except in compliance with the License. You may obtain a copy of
   - the License at http://www.mozilla.org/NPL/
   - 
   - Software distributed under the License is distributed on an "AS
   - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
   - implied. See the License for the specific language governing
   - rights and limitations under the License.
   - 
   - The Original Code is mozilla.org code.
   - 
   - The Initial Developer of the Original Code is Netscape
   - Communications Corporation. Portions created by Netscape are
   - Copyright (C) 1998-1999 Netscape Communications Corporation. All
   - Rights Reserved.
   - 
   - Contributor(s):
   - Daniel Howard
   - 
   - Alternatively, the contents of this file may be used under the
   - terms of the GNU Public License (the "GPL"), in which case the
   - provisions of the GPL are applicable instead of those above.
   - If you wish to allow use of your version of this file only
   - under the terms of the GPL and not to allow others to use your
   - version of this file under the NPL, indicate your decision by
   - deleting the provisions above and replace them with the notice
   - and other provisions required by the GPL.  If you do not delete
   - the provisions above, a recipient may use your version of this
   - file under either the NPL or the GPL.
  -->
<body>
<h1>
<span CLASS=LXRSHORTDESC>
HTML (i.e. Composer) and plaintext editor<p>
</span>
</h1>
<span CLASS=LXRLONGDESC>
The editor directory contains C++ interfaces, C++ code, and XUL/Javascript
for the embeddable editor component, which is used for the HTML Editor
("Composer"), for plain and html mail compose, and for text fields and
text areas throughout the product.
<p>
The editor is designed like a "browser window with editing features": it
adds some special classes for editing text and managing transaction
undo/redo, but reuses browser code for nearly everything else.
</span>
</body>
</html>