198 Commits

Author SHA1 Message Date
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
pinkerton%netscape.com
e4b5accaab allow macs with low memory to build optimized by setting the |lowmem| option. bug 72945. r=peterv/sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@90570 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:08:32 +00:00
erik%netscape.com
d294fedda9 bug 71314; author=simon@softel.co.il; r=mjudge,anthonyd; sr=erik; changes
from IBM bidi project (Arabic, Hebrew, etc); some in ifdef for now


git-svn-id: svn://10.0.0.236/trunk@89949 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 01:16:22 +00:00
blakeross%telocity.com
8fb7590d01 Making editor's |dont_AddRef| usages easier on the eyes (56033). r=timeless sr=scc
git-svn-id: svn://10.0.0.236/trunk@87953 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-26 00:28:58 +00:00
jfrancis%netscape.com
f02aa82ffa thank heavens i'm paranoid, or i wouldn't have found prob with ancient patch
git-svn-id: svn://10.0.0.236/trunk@86534 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 10:07:59 +00:00
jfrancis%netscape.com
29b58f1bd6 bug 62235 All new data lost after deleting some text
bug 56880 backspace can delete entire contents of style node
bug 56168 Missing character after closing inline tag which spans lines
r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@86532 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 09:26:51 +00:00
bryner%uiuc.edu
5460bd061d Bug 67709 - assertions when typing in editor due to uninitialized return value. r=blake, dbaron. sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@86301 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 02:55:06 +00:00
dbaron%fas.harvard.edu
f4291c82db Convert correct usage of |nsCOMPtr<T>::operator&| to use |address_of| since the operator& will soon become private. b=59414 r=disttsc@bart.nl
git-svn-id: svn://10.0.0.236/trunk@86185 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-04 19:39:56 +00:00
jfrancis%netscape.com
d50f8babc0 bug 67241: regression from the mongo embedding landing. now the smarts (for adding extra br's at the end of blocks when you hit return) are turned back on for html editors. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@85907 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 23:58:42 +00:00
jfrancis%netscape.com
7cde2dddd5 bug 66290: embedding work: refactor editor to allow smaller plaintext only library. Embedding clients may be interested inthis library if they want to embed a browser but not composer/mail-compose. Reduces library footprint for plaintext-only library by over 50% on all three platforms. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@85666 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-28 20:13:07 +00:00
blakeross%telocity.com
575affbf87 Fix 59327: hwaara's patch to add an assertion. r=jag sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@85037 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-17 20:01:11 +00:00
anthonyd%netscape.com
32339edfc0 bug fix for 62796
sr=kin@netscape.com
a=jfrancis@netscape.com
r=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@84669 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-09 21:44:35 +00:00
anthonyd%netscape.com
a1ab735a6f fix for bug#58028 - Range CompareBoundaryPoints returning incorrect values
r=jst,kin
a=kin


git-svn-id: svn://10.0.0.236/trunk@84077 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-27 00:37:01 +00:00
dbaron%fas.harvard.edu
fc1d2a9cd5 Convert correct usage of |nsCOMPtr<T>::operator&| to use |address_of| since the operator& will soon become private. b=59414 r=disttsc@bart.nl sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@83446 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-09 04:46:08 +00:00
kin%netscape.com
02a2a9a6b6 Misc fixes for pedantic build warnings.
r=jfrancis@netscape.com a=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@83078 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-29 22:06:02 +00:00
akkana%netscape.com
0eff955ec3 Split plaintext methods off into nsIPlaintextEditor API. sr=sfraser, r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@82714 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-17 00:25:31 +00:00
bryner%uiuc.edu
ada2d38770 Trivial change, missing "return". r/sr/a=sfraser.
git-svn-id: svn://10.0.0.236/trunk@82672 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-16 02:13:30 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
jfrancis%netscape.com
246c0aaeeb fixes bug 54895: certain editor operations (like align) crashed when applied to mulit-cell table cell selections; r=kin; sr=sfraser; a=jar
git-svn-id: svn://10.0.0.236/trunk@80872 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 00:27:33 +00:00
jst%netscape.com
17e33bbc26 Checking in for bug 50742, this change removes the use of XIF in mozilla and replaces the XIF converter with a HTML (and XML) serializer.
Contextual information added to HTML copy and intelligence added to HTML paste in the editor (fixes bugs 47014, 50568 and 46554, and partly (at least) fixes bug 53188).

Code written by vidur, jfrancis, jst, akkana. Tested by jfrancis, akkana, vidur, jst, kin. Reviwed (and super reviewed) by waterson, vidur, kin, jfrancis, jst


git-svn-id: svn://10.0.0.236/trunk@80681 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 10:57:30 +00:00