mjudge%netscape.com
e2be918716
small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575
2000-09-14 11:45:01 +00:00
jfrancis%netscape.com
86f482d466
fixes for 45608, 51398, 51591; r=cmanske
2000-09-14 05:59:19 +00:00
jdunn%netscape.com
7312330f97
Specify that the base class is indeed 'public' since some compilers (AIX)
...
assumes 'private'. I ok'd each of these with the appropriate module
owners (see bug)
r= scc@mozilla.org & brendan@mozilla.org + everyone listed in bug
#= 52254
2000-09-13 13:50:30 +00:00
jfrancis%netscape.com
c3fbd24ce0
fixes 40363, 40364: deletion bugs with tables; r=fm
2000-08-28 05:11:49 +00:00
jfrancis%netscape.com
0202119f78
fixes bugs 46782,50161,48643,49266,49265,46395;
groundwork for bugs 47931,49952;
r=fm
2000-08-26 04:03:50 +00:00
jfrancis%netscape.com
38b49a5376
adding a hidden pref for the editor:
editor.liReturnBehavior "no" will disable the default behavior of popping you out of lists if you hit return in an empty list item.
2000-08-17 05:26:32 +00:00
jfrancis%netscape.com
76f9c50305
groundwork for 44684: adding a "GetAlignment" call to the editor so that ui can reflect alignment of selection
2000-08-14 12:07:10 +00:00
jfrancis%netscape.com
03d288ef63
take 2: fix for 22227 and partial fix for 46209; r=mjudge; a=beppe
2000-07-27 01:03:16 +00:00
jfrancis%netscape.com
e93fa5fecf
backend work for 41034: getting format feedback and list feedback untangled from each other.
2000-06-02 07:47:53 +00:00
jfrancis%netscape.com
08769b0013
fixes
41075: forward delete can delete wrong char,
41149: incorrect format feedback when in lists
2000-06-02 06:03:46 +00:00
jfrancis%netscape.com
f8789832b8
fixes:
14753, 29843, 39864, 40141,
40139, 36679, 39542, 34729,
34855, 37216, 39292, 26447
r=sfraser,cmanske,fm; a=beppe
2000-05-24 23:00:24 +00:00
jfrancis%netscape.com
658fa56fa3
editor embedding work; fixing bug with making lists
2000-05-09 21:06:49 +00:00
jfrancis%netscape.com
b109f8dbd6
fixing bugs with paste; making paste not inherit local inline stlyes
2000-05-05 20:42:36 +00:00
jfrancis%netscape.com
26e457e4fd
fix for 29320; deletion putting caret in wrong table cell
2000-05-04 23:54:00 +00:00
mjudge%netscape.com
ebafd36182
massive change to prepare for ender-lite. should be a no-op for current implementation
2000-05-04 08:33:48 +00:00
jfrancis%netscape.com
509b944592
partial fix for bug 30763
2000-05-03 01:34:34 +00:00
jfrancis%netscape.com
f6251ee4f7
implementing list behavior spec, plus a few bug fixes
2000-05-03 00:14:28 +00:00
jfrancis%netscape.com
c207f78168
lots of improvements to block transformations:
1) looks inside inlines for breaks;
2) fixes the "extra break when unlisting" bug
3) changing paragraph style to normal consistently gets breaks
4) any splitting needed occurs when blocks inserted
plus a lot of small bug fixes
2000-04-24 11:51:12 +00:00
jfrancis%netscape.com
f15ea6358d
cleanup and small bug fixes
2000-03-30 22:57:19 +00:00
jfrancis%netscape.com
af4644e7c8
making editor hip to inline style changes on collapsed selections. plus lots of removal of unused code.
2000-03-29 12:53:23 +00:00
jfrancis%netscape.com
0b23120401
improved paste performance in editor (WIP) (bug 28783)
set/remove inline stlye rewrite (lots of bug #s)
2000-03-24 00:26:47 +00:00
jfrancis%netscape.com
6d57ee0984
fixes for the following bugs:
27914, 27305, 28690, 14608, 27306, 28757
These fixes reviewed by cmanske, apprvd rickg;
also fix for 28724 (caret positioning problems)
reviewed by mjudge, apprvd by jar.
2000-02-25 04:39:30 +00:00
jfrancis%netscape.com
c9505c0fa5
implementing font increase/decrease size for html editor (bug 18774) r=floppy moose
2000-02-08 12:53:34 +00:00
akkana%netscape.com
a3dbe39403
22662, 16720: greatly improve formatting of html source for inserted html tags. r=jfrancis
2000-01-26 00:57:37 +00:00
jfrancis%netscape.com
c8e28aa7ac
fix for 21412 - backspace wouldn't remove list items in html editor.
In addition some improvements were made to the adjustment of selection after an edit action (example: backspacing through a list item now pops you up to the previous item)
2000-01-17 12:41:34 +00:00
jfrancis%netscape.com
634a777322
* fixed 19596;
* fixed 23597;
* fixed deletion bug that could cause to breaks to be deleted instead of one, when backspacing once. (no #)
* partial fix for current paragraph style not being properly reported in the composer toolbar. (no #)
2000-01-15 14:29:29 +00:00
jfrancis%netscape.com
e72a2924a8
added in some rules code for mail quoting. This
fixes bug: 19979 (extra blank line showing up in
mail that has quotes)
partial progress on block transformation work:
unlisting a list now works mostly correctly again,
instead of merging all the former list items into
one run of text (no bug number).
Moz-br's are now added in one more circumstance:
when you have a br at the end of some inline
content that is followed by a new block (like a
list, table, etc.). This is needed for the same
reason that the other moz-br's are: to generate a
blank line that the user expects after hitting
return. (no bug number)
DTD-related work to enable the editor to check if
you should be able to type given the current
selection.
fixed bug 22944: inserting an <A> in a table
splits the table.
Made some progress on text paste performance, but
it's still too slow. That's 19273, which I'm
leaving open
fixed bug 15258: selection capable of getting out
of the body element.
fixed a bug where code that merged adjacent text
nodes would merge the non-editable "formatting"
textnodes, (no bug number). Added code to prevent
selection from ending up inside a non-editable
text node.
fix for 11994, an IME bug.
2000-01-10 10:13:58 +00:00
jfrancis%netscape.com
d6e95890c8
Fix for bug 21346.
This is actually a major reworking of how the low level editor txns perturb selection. There is a mode now for telling the txns not to disturb the selection. There is also a fix for unlisting lists (sometimes list items got merged unintentionally when unlisting).
2000-01-04 03:09:41 +00:00
jfrancis%netscape.com
167f9c0b74
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
f5c7841eae
fix for bug 20205: selection was getting jerked around by whitespace conversion code.
1999-11-30 21:58:37 +00:00
jfrancis%netscape.com
d4edc684b8
* 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
c21e8c7d35
fixing bad const in interface (not caught by mac compiler)
1999-11-25 00:36:34 +00:00
jfrancis%netscape.com
7e43f8caf0
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
dmose%mozilla.org
142ac52eaf
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
f5c0eec556
fixes for bugs: 16361,12253,15696,15734; r=sfraser
1999-11-01 15:15:35 +00:00
jfrancis%netscape.com
c412022f4a
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
jfrancis%netscape.com
9a79219861
revised UNDO; introduced first cut at the "mozdiv" typing rules
1999-09-29 20:08:15 +00:00
jfrancis%netscape.com
9e2b02664f
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
8915071857
fix for bug 13482
1999-09-09 22:22:14 +00:00
jfrancis%netscape.com
7e088b3bf0
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
jfrancis%netscape.com
f574b5218f
more deletion work...
1999-09-01 21:23:47 +00:00
jfrancis%netscape.com
34f6986b50
refactoring text insertion code; indent/outdent now work with lists and list items.
1999-08-24 08:56:51 +00:00
jfrancis%netscape.com
a099b1e5b6
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
c8ee477692
added helper function IsEmptyBlock()
1999-08-09 21:49:25 +00:00
buster%netscape.com
5b65a4e45f
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
d73dfd8ddb
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
akkana%netscape.com
c8b9982001
Oops, I misunderstood tor's fix for the sunos bustage
1999-07-01 23:41:29 +00:00
buster%netscape.com
7bc9bfc2b0
0. possible fix for Sun build bustage.
...
1. IsEditable is much less hacky. It basically says:
1. if the node is a special bogus text node, it's not editable
2. if the node is a text node with only newlines, then it's not editable
3. if the node has no frame associated with it, then it is not editable
4. otherwise, it is editable.
As part of this, I had to make IsEditable non-static. This had some cascading effects on static methods that called
IsEditable, which likewise had to be made non-static.
2. SetTextProperties now works when the endpoints are leaf nodes (like images), not just text. Charlie, you should
put this through some stress cases.
1999-07-01 18:42:28 +00:00
jfrancis%netscape.com
7904f484a3
some cleanup and also selection enforcement for plaintext documents: selection is pinned to within the PRE tag on any edit action
1999-07-01 13:42:03 +00:00
jfrancis%netscape.com
0db5edf4c8
improvement of editing rules for insert list, indent, outdent, and change alignment
1999-06-25 09:33:02 +00:00