Commit Graph
80 Commits
Author SHA1 Message Date
jfrancis@netscape.com 898a1b4dcd fix for 20457: deletion in editor pretty darn screwy. Lots of changes to improve this. Document modifying entry points in editor now go thru a standard sandwich, which allows tracking of what changed in the doc, which allows proper post-processing of what changed. Also, all deletions now go thru the rules code, if applicable. Also some bugs in tracking the changed document portion have been fixed. Finally selection setting after a delete is improved. 1999-12-07 08:30:19 +00:00
jfrancis@netscape.com 881475b192 fix for bug 19130 - hitting escape during ime entry can leave editor without a caret. r=kin 1999-12-05 00:29:34 +00:00
jfrancis@netscape.com 769cb9c818 * fix for PDT+ 16481: need rules for deleting in tables * fix for 19395: protect against zero length text inserts r = floppy moose 1999-12-01 14:32:55 +00:00
jfrancis@netscape.com dc6752b0ea fix for bug 20205: selection was getting jerked around by whitespace conversion code. 1999-11-30 21:58:37 +00:00
jfrancis@netscape.com 4798db6f21 * ported the html editor work for the "caret doesn't move when i hit return" bug (16715) back to the plaintext editor. * fixed a paste/rules interaction problem (19367) * introduced an init time pass over html documents to populate empty list items and table cells with special breaks so that the user can click in them and actually get a caret * fixed some warnings r = floppy moose 1999-11-29 08:28:46 +00:00
jfrancis@netscape.com 300537d97f cool! i cant believe it's not butter! (how did the mac ever compile this?) fixing bizarre cut/paste error. 1999-11-25 01:34:42 +00:00
jfrancis@netscape.com 2e8c404738 fixing bad comptr usage (also not caught by mac compiler) 1999-11-25 00:39:55 +00:00
jfrancis@netscape.com 659a91a4f7 fixing bad const in interface (not caught by mac compiler) 1999-11-25 00:36:34 +00:00
jfrancis@netscape.com 262131f00c implemented a system to track what portion of a document is affect by an editor action. Used that system to help solve extensive whitespace handling problems, ans also problems with caret placement in response to returns (this lattter fix for html editors only - plaintext coming later). Fixed numerous list bugs involving outdenting, unlisting, and splitting lists. Checkin addressees these bugzilla bugs: 2073 & 12337 - whitespace trouble when typing (you can end up with all nbsp's instead of spaces) 1999-11-25 00:19:45 +00:00
sspitzer@netscape.com 1d83ea608d fix for blocker bug #19083, compose html message causes a crash.
r=sfraser.
1999-11-17 22:34:41 +00:00
dmose@mozilla.org 20621227af updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
jfrancis@netscape.com 6b5a1f64cd fixes for bugs: 16361,12253,15696,15734; r=sfraser 1999-11-01 15:15:35 +00:00
braddr@puremagic.com fc254abc98 Move all nsIEnumerator usage over to NS_ENUMERATOR_FALSE from NS_COMFALSE in anticipation of nixing NS_COMFALSE in the near future.
r=scc
1999-10-28 03:16:48 +00:00
jfrancis@netscape.com 402e416d66 fix for 17056: making a list in empty doc didnt work; also making a new list item didn't work. r=floppy moose 1999-10-27 23:44:33 +00:00
ftang@netscape.com 1fadcdc94d add debugging code. fix remove last uncomited IMEText. r=jfrancis 1999-10-27 22:56:36 +00:00
braddr@puremagic.com d6d793f443 Ooops.. tree closed, better back these out for now. Sorry. 1999-10-27 21:01:37 +00:00
braddr@puremagic.com 2bc87841c4 Move all nsIEnumerator usage over to NS_ENUMERATOR_FALSE from NS_COMFALSE
in anticipation of nixing NS_COMFALSE in the near future.
r=scc (please contact him should there be any build issues)
1999-10-27 20:24:21 +00:00
jfrancis@netscape.com 1da48ebc1c revised rules system api to include "handled" parameter and ceased to overload the meaning of the "cancel" parameter; added TypedText() method to editor, editorshell, and logging, so that logging will work properly with typing; coallesce deletions for undo purposes r=buster@netscape.com 1999-10-06 19:34:09 +00:00
akkana@netscape.com d6c0613e76 14859: make rules code smarter about identifying blockquote type=cite 1999-09-29 20:20:31 +00:00
jfrancis@netscape.com 6e591b2920 revised UNDO; introduced first cut at the "mozdiv" typing rules 1999-09-29 20:08:15 +00:00
jfrancis@netscape.com 227f903cd5 fixing a heap-o-undo problems and some mBogusNode problems 1999-09-20 01:31:44 +00:00
jfrancis@netscape.com d853e335bb fix bug 13469 1999-09-19 10:31:31 +00:00
jfrancis@netscape.com ec7d588a71 fix for bug 13500 - typo that broke deletion 1999-09-15 05:43:25 +00:00
jfrancis@netscape.com de076ff539 fix for 12675; also added a wrapper for GetNextNode()/GetPriorNode() that checks for containment in the <body> 1999-09-12 01:36:07 +00:00
jfrancis@netscape.com 6f188a045a cleaning up warnings (bug 13469) 1999-09-11 00:20:59 +00:00
jfrancis@netscape.com 9fc5afb823 bug fix: paragraphs now merge properly. 1999-09-10 23:32:28 +00:00
jfrancis@netscape.com 74f54bd2ed fix for bug 13482 1999-09-09 22:22:14 +00:00
jfrancis@netscape.com acebe28949 making special mail-compose editing rules accessible to mail 1999-09-08 06:26:53 +00:00
jfrancis@netscape.com a66004f68e implemented RemoveList(); deletion doesn't scatter so many empty nodes; mailcite rules started; general deletion work (still WIP); several small bugfixes; refactored list item outdenting code 1999-09-06 19:51:59 +00:00
sspitzer@netscape.com a886190153 add newline to end of file to please certain UNIX compilers. 1999-09-03 10:43:00 +00:00
jfrancis@netscape.com f93fbe3159 more deletion work... 1999-09-01 21:23:47 +00:00
jfrancis@netscape.com 5e84df256d checkpointing some deletion work 1999-08-31 13:55:18 +00:00
mscott@netscape.com 3af6600e97 Fix pedantic build breakage for unix. 1999-08-24 18:38:21 +00:00
jfrancis@netscape.com 56f6603265 refactoring text insertion code; indent/outdent now work with lists and list items. 1999-08-24 08:56:51 +00:00
jfrancis@netscape.com 787ffb516a some reorg of block transformation code; implemented make-{header,preformatted,address,normal}; tweaked make list to honor <br> in some circumstances; rewrote "return in list item" to pop you out of list if item is empty; rewrote "return in header" to work with non-trivial headers. 1999-08-18 08:13:06 +00:00
jfrancis@netscape.com 001ba27f65 let VC 5 live! 1999-08-10 22:02:27 +00:00
jfrancis@netscape.com 0eeac558b7 more block operation improvements to "make list" 1999-08-10 21:44:10 +00:00
jfrancis@netscape.com fa19a16d29 begginning of block operations honoring breaks... 1999-08-09 23:39:48 +00:00
jfrancis@netscape.com cb0070f114 fixing bug 9366 1999-08-09 22:51:40 +00:00
jfrancis@netscape.com 5d6038bc34 smarts for creating empty lists in the right places; prelim work for WillMakeHeader(); prelim work for indenting lists; helper routine IsEmptyBlock(); 1999-08-09 21:50:02 +00:00
buster@netscape.com 39e237a3f7 moved handling of flags from rules constructor to rules init, so
rules code can call SetFlags with mEditor initialized and do real
processing if it wants to.
1999-08-09 18:39:49 +00:00
sfraser@netscape.com 9b2b76de4f Landing editor API changes. Removed nsITextEditor and nsTextEditor, split interfaces into more, non-overlapping interfaces, and other general cleanup. 1999-08-09 01:37:50 +00:00
kin@netscape.com d2ac075fe7 Fixes for bug #10231 (crash making list after select all)
and bug #10815 (Crash deleting selected text and table)

mozilla/editor/base/nsHTMLEditRules.cpp
  - Added check, in WillDeleteSelection(),  to see if
    endpoints of the range are in the body before calling
    GetBlockNodeParent(). (Bug #10231)
  - Modified GetPromotedPoint() to check for NULL in the
    case where aWhere == kEnd and GetChildAt() returns NULL.
    (Bug #10815)

mozilla/layout/base/src/nsGenericElement.cpp
  - Modified RangeAdd() so that it doesn't add
    a range if it's already in the list.  (Bug #10231)

mozilla/layout/base/src/nsRangeList.cpp
  - Modified GetPrimaryFrameForFocusNode() to
    initialize aReturnFrame and to return a failure
    if ChildAt() returns NULL. (Bug #10231)
1999-08-04 18:36:19 +00:00
rhp@netscape.com 2acec18b5d Fix for stopper bug #10504 1999-07-26 18:05:41 +00:00
jfrancis@netscape.com 601651100c assorted work to expose nav html dtd to the editor 1999-07-19 22:49:21 +00:00
mjudge@netscape.com 8e4c13fcd1 massive checkin for selection. adjusting nsIDOMSelection api and nsIFrameSelection. many "small" changes. this is not as bad as it looks. layout will not be affected other than "getter" calls for selection. and all consumers of selection should be in good shape. 1999-07-18 02:27:19 +00:00
buster@netscape.com 0926cbc8f9 replaced IID's with CID's where they were appropriate, and removed lots of
NS_DEFINE_IID macros in favor of GetCID() wherever I could.
plus some minor bug fixes.
1999-07-15 19:13:46 +00:00
mjudge@netscape.com a8748298ee checkin for carpool for multiple seleciton/ime selection and api changes 1999-07-15 18:19:20 +00:00
jfrancis@netscape.com e5850fe81d fix for bug 5903 1999-07-03 13:27:13 +00:00
jfrancis@netscape.com 7f2653f760 making the plain text selection pinning savvy to the other flavors of text editors, the ones that DONT have <pre> tags wrapping all the text 1999-07-02 07:53:08 +00:00