218 Commits

Author SHA1 Message Date
timeless%mac.com
21c081c8bc Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst


git-svn-id: svn://10.0.0.236/trunk@111049 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-23 23:23:41 +00:00
jaggernaut%netscape.com
576ec93128 Bug 113228: Replace ns{C}String::To{Upper,Lower}Case with global versions. r=bzbarsky, sr=jst
git-svn-id: svn://10.0.0.236/trunk@110611 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 07:14:49 +00:00
jfrancis%netscape.com
628bcae417 fix for bug 114750 and various dups: infinite loop in editro when backspacing or forard deleting across some block boundaries. r=hwaara, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@110589 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 19:00:42 +00:00
jfrancis%netscape.com
7943166470 fix for Bug 92331: at long last moving over to using spans instead of pre's for plaintext mailcites. Due to limited testing the pref for this is left *OFF*. we'll flip it on if everything goes well later.
also fixes for:
101342 : Extraneous <br> when <td> content is <textarea>
104499 : when using the decrease indent, caret hops to the end of the previous line
r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@110371 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 06:02:15 +00:00
cmanske%netscape.com
bd0c9879f3 Support changing list bullet/number style for selected list items. b=92278 r=jfrancis,brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@110351 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 03:57:32 +00:00
hwaara%chello.se
0cdc2cf1d3 #114429, caret ignores a backspace on a line before a <HR>.
r=jfrancis, sr=kin


git-svn-id: svn://10.0.0.236/trunk@110298 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 22:22:47 +00:00
jfrancis%netscape.com
dfd10349d5 fixes bug 99523 and cast of hangers on: this patch allows the editor to backspace/forward-delete across block boundaries (other than table elements), rearranging the document content in some sensible way in response. r=fm;sr=kin
git-svn-id: svn://10.0.0.236/trunk@110125 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-09 09:24:33 +00:00
brade%netscape.com
4d6d20f598 NS_LITERAL_STRING cleanup (bug 26384; r=akk, sr=kin)
git-svn-id: svn://10.0.0.236/trunk@110009 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 15:28:47 +00:00
jfrancis%netscape.com
474493b5ff fix for 97259: caret sometimes drawn on line above a blank line when it should be on blank line. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@109200 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 10:01:28 +00:00
jfrancis%netscape.com
763808d87d fixes for ---
45888: center followed by heading 2: text doesn't take on heading 2 
102754: Lists with Headings applied do not create new list items when return entered
9835: Indent button behaves differently if <li> contains two <br>
r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@108818 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 19:35:11 +00:00
jfrancis%netscape.com
86581dbcfa fix for Bug#:107494, when editting in IME mode, you cannot delete last uncommitted character. r=smfr; sr=kin; a=drivers
git-svn-id: svn://10.0.0.236/trunk@108051 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 12:58:57 +00:00
bzbarsky%mit.edu
068756d821 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107987 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:33:42 +00:00
kin%netscape.com
d7e3258a81 Fix for bug 106383: regression: new composer doc behaves as if empty
mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
  mozilla/editor/libeditor/html/nsHTMLEditRules.cpp
  mozilla/editor/libeditor/html/nsHTMLEditRules.h
  mozilla/editor/libeditor/html/nsHTMLEditor.h
  mozilla/editor/libeditor/text/nsTextEditRules.h

    - Added nsHTMLEditRules::WillLoadHTML() which removes any mBogusNode.
    - Modified nsHTMLEditor::LoadHTML() to call Will/DidDoAction().
    - Changed all references of kOpHTMLLoad to kOpLoadHTML to match
      function name, and added kLoadHTML.

r=jfrancis.netscape.com  sr=sfraser.netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@107735 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 15:16:03 +00:00
kin%netscape.com
9ec5334640 Fix for bug #99517: Text migrates past H. Line, loses formatting when converted to list
Modified WillMakeList() to clear prevListItem after adding a block
to a list item so that any inline nodes after the block are put
in a new list item.

r=jfrancis@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@107105 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 14:47:10 +00:00
brade%netscape.com
18ad0f0e55 nsIFile->nsIURI in nsIDiskDocument shows missing #include; now added (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106957 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:22:10 +00:00
glazman%netscape.com
833d6a353e call to GetNodesForOperation() in GetAlignment() missed a parameter indicating it should not modify the tree; b=107372, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@106831 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 15:30:49 +00:00
jfrancis%netscape.com
c64143d012 fixes following bugs:
77902: toggling from normal to source view and back in composer can leave source in normal view.
101645: big/small tags get seperately wrapped around br nodes
81315: drag and drop doesn't behave same as copy paste
90759: ascii spaces don't behave in IME mode
96328: cant outdent certain indented text
58629: some mail messages cannot be accurately quoted on reply
93088/93477: forward deletion broken
46290: relative font size controls dont play nice with absolute font size
r=various; sr=kin


git-svn-id: svn://10.0.0.236/trunk@105922 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-22 06:22:52 +00:00
kin%netscape.com
b343a978fe Fix for bug 101690: Delete key at end of line deletes a line then caret freezes
Modified WillDeleteSelection() to make sure that
sibling is a TextNode before trying to join it
with startNode (which is guaranteed to be a text node).

r=jfrancis@netscape.com   sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@105768 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 13:48:43 +00:00
alecf%netscape.com
f7b48fa3b1 convert nsCRT::strn?cmp to Convert() for bug 100214, to depend on string rather than xpcom for case-insensitive unicode support. r=sspitzer for mail stuff, r=jag for everything else, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@105318 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-13 00:16:32 +00:00
glazman%netscape.com
31f862f14e Make html alignment in Composer use the align attribute and get rid of a lot of useless divs; b=102135, r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/trunk@104906 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-09 10:00:33 +00:00
mkaply%us.ibm.com
5c53d0b96c #79798
r=ftang, sr=kin@netscape.com
Cursor is an ambigous term - use caret to refer to the text caret in Bidi functions


git-svn-id: svn://10.0.0.236/trunk@104268 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-30 20:35:55 +00:00
glazman%netscape.com
b0f0ef596c alignment status in Composer was erroneous for cells into an aligned table; b=97519, r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/trunk@103933 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-27 08:44:25 +00:00
gerv%gerv.net
3821428085 License changes, take 2. Bug 98089. mozilla/editor/.
git-svn-id: svn://10.0.0.236/trunk@103757 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 22:53:13 +00:00
jfrancis%netscape.com
fe8d36a5da fixes bug 96676: deletion can pull text out of inline containers
fixes bug 97685: unbulleting empty bullet list item can create nested list
r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@103605 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-24 03:43:34 +00:00
gerv%gerv.net
ae1d5501a1 Oops.
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
52c8d09e03 bug #98089: ripped new license
git-svn-id: svn://10.0.0.236/trunk@103219 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 20:09:47 +00:00
jfrancis%netscape.com
ef3482215e fixes 97797: empty solo list item won't indent. Changes to nsHTMLEditRules::WillMakeList() to not outsmart itself so badly. r=fm;sr=kin
git-svn-id: svn://10.0.0.236/trunk@102944 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-14 21:09:55 +00:00
jfrancis%netscape.com
c52350e6b5 fixes 98543: backspace/delete was crossing table structure boundaries. Also fixed other flavors of this bug that had not been discovered yet.
r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@102622 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 20:57:46 +00:00
jaggernaut%netscape.com
234588f481 Bug 98153: Remove SubsumeStr. r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@102292 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 10:46:45 +00:00
jfrancis%netscape.com
dc74067145 fixes:
bug 83918 - Not able to start a list (number or bullets) when using Bold style
bug 62347 - Selecting "Body Text" doesn't change style if in <pre> text that has <br>
bug 86476 - ubercaret appears on multi-line text block
bug 87882 - pasting text from one bullet to another yields extra bullet
---------------
r=sfraser; sr=kin


git-svn-id: svn://10.0.0.236/trunk@101631 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:32:44 +00:00
jaggernaut%netscape.com
2b3b3b2586 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
git-svn-id: svn://10.0.0.236/trunk@99906 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 07:54:28 +00:00
kin%netscape.com
19e4169a0a Fix for bug #91310 (Align Right splits table) and
bug #91288 (Aligning blank table cell in show all tags mode splits table)

Modified WillAlign to prevent unnecessary splitting:

  - Don't execute emptyDiv special case code when start container of the
    selection is a table cell element, but not a table cell or caption.
  - Prevent processing of whitespace between list/table structure nodes.
  - Prevent splitting when processing sub lists.

r=brade@netscape.com  sr=attinasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@99847 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 00:10:34 +00:00
kin%netscape.com
359d9ca3c7 Fix for bug #90499: Can't delete selection if end of selection contains "<br>\n"
Modified nsHTMLEditRules::WillDeleteSelection() so that it uses
an nsAutoTxnsConserveSelection auto-variable to prevent the
call to nsWSRunObject::PrepareToDeleteRange() from changing
the selection.

r=brade@netscape.com  sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@99516 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-18 21:22:31 +00:00
dbaron%fas.harvard.edu
9359000a40 Header include dependency cleanup. b=64023 r=jag rs=brendan
git-svn-id: svn://10.0.0.236/trunk@99299 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 02:40:48 +00:00
jfrancis%netscape.com
1c6a1bb7cf fixes:
69320: making new block must put selection in block
74722: pasting into a pre block should not nest pre's
82421: ubercaret after ending list
67847: deletion can put caret incorrectly at start of doc


git-svn-id: svn://10.0.0.236/trunk@97532 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 02:05:37 +00:00
jfrancis%netscape.com
76fa344ce5 now with vitamin R for extra wholesome goodness!
(correcting snafu)


git-svn-id: svn://10.0.0.236/trunk@97359 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 21:43:20 +00:00
jfrancis%netscape.com
bd7c2eb18f this checkin includes diff for 61232. was supposed to be in previous checkin. r=sfraser; sr=kin; a=asa
git-svn-id: svn://10.0.0.236/trunk@97356 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 21:35:07 +00:00
jfrancis%netscape.com
978ab248f8 fixes for:
61232 - Caret comes back to previous line after creating paragraph
54520 - Extra break with list items
54539 - Disappearing numbered list with outdent
60867 - Composer adds extra break when round-tripping empty document through View Source
62347 - Selecting Body Text doesn't work inside other blocks that have embedding breaks


git-svn-id: svn://10.0.0.236/trunk@97351 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 21:15:43 +00:00
kin%netscape.com
3a9a2b59a4 Fix for bug #62577 - Sublist content disappears when unlisting.
mozilla/editor/base/nsHTMLEditRules.cpp
      - Moved list handling code in WillRemoveList() into a new recursive
        method RemoveListStructure() which WillRemoveList() now calls.

      - Modified WillOutdent() to call MoveNode() when a sublist is encountered.

      - Made ConvertListType() recursive so that all sublists are coverted.

  mozilla/editor/base/nsHTMLEditRules.cpp

      - Added RemoveListStructure() method.

r=jfrancis@netscape.com  sr=sfraser@netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@97214 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 13:57:01 +00:00
jfrancis%netscape.com
95dc24ae05 fix for 82612: this is just asimple refactoring of a large routine so that we need less mem to do an optimized build.
r=kin; sr=sfraser; a=asa


git-svn-id: svn://10.0.0.236/trunk@96992 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 23:17:47 +00:00
jfrancis%netscape.com
533c057d2f fix for 54218: outdent was not enabled in many cases. Now we correctly examin parent heirarchy of selection for blockquotes. r=kin; sr=sfraser; a=asa
git-svn-id: svn://10.0.0.236/trunk@96986 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 23:03:12 +00:00
jfrancis%netscape.com
ef088d534d fix for 74122: distinquish between named anchors and links in deletion code. links are deleted if they become empty, but not anchors. r=brade; sr=kin; a=asa
git-svn-id: svn://10.0.0.236/trunk@96981 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 22:49:09 +00:00
jfrancis%netscape.com
e1d5bae29a fix for 67847 take 2: forgot to add in requested reviewer changes in previous checkin
git-svn-id: svn://10.0.0.236/trunk@96976 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 22:27:53 +00:00
jfrancis%netscape.com
0ed7094afa fix for 67847: forward delete can make caret go to start of doc. r=kin; sr=sfraser; a=asa
git-svn-id: svn://10.0.0.236/trunk@96972 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 22:21:12 +00:00
mkaply%us.ibm.com
0f48c5b458 #80550
r=jfrancis, sr=sfraser, r=leaf for build changes
Putting back Bidi selection code that was removed by 65557


git-svn-id: svn://10.0.0.236/trunk@95640 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 23:57:55 +00:00
jfrancis%netscape.com
73072cd5e7 bug 65557 and cast of thousands: making the editor behave more intelligently wrt html whitespace rules. Improved ws handling for:
insert text,
insert break,
join blocks,
split block,
delete
Yet to be tackled is html copy & paste.  r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@94635 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 12:43:22 +00:00
mjudge%netscape.com
f92ab20e82 76442 sr= scc r= anthonyd. last minute fixes to editor to not do stupid copies and instead to use new case insensitive string compares.
git-svn-id: svn://10.0.0.236/trunk@92668 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 06:17:05 +00:00
jfrancis%netscape.com
9a35a75ae3 fixes for bugs:
75618   CR line breaks not recognized when inserting data in a plain 
76258 	IsEditable() needs to be smarter 
72968 	browser crashes when doing REDO after doing some cut/paste i 
55224 	switching from HTML Source mode to Normal causes dataloss 
71355 	style buttons do not work from 2nd cell onwards inside table 
71362 	empty tables inside (otherwise) empty list item disappears w 
74655 	40% of reply time in mailcompose spent converting linefeeds

r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@92547 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 10:15:05 +00:00
mjudge%netscape.com
77323a8468 66318 r= kin, sr=kin tested by ducarozz ,phil chofmann approved..changing APIS to be idl so we can use in embedding land... lots of string changes too to nsAStrings
git-svn-id: svn://10.0.0.236/trunk@91610 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 00:45:26 +00:00
akkana%netscape.com
02dbe54c0d 66345: Factoring necessary for editor reorganization. sr=kin/sfraser, r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@91511 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 23:48:01 +00:00