134 Commits

Author SHA1 Message Date
akkana%netscape.com
13ae4ba935 33088: restructure editor output routines. r=kin,buster,adamlock sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@84590 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 21:01:29 +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
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
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
mjudge%netscape.com
bf52251b65 r=sfrasier a=pdt+ fixing plain text mail 33654 see kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@79792 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 00:43:44 +00:00
mjudge%netscape.com
2fc6190bef 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
git-svn-id: svn://10.0.0.236/trunk@79118 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 11:45:01 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
akkana%netscape.com
9834f29a1e 50935: make multiline paste into single line text control switchable. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@77917 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 21:12:43 +00:00
akkana%netscape.com
98e3352cf6 23485: make it possible for urlbar to go to urls spanning multiple lines. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@77375 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-28 22:15:03 +00:00
jfrancis%netscape.com
84db5fa624 fixes bugs 46782,50161,48643,49266,49265,46395;
groundwork for bugs 47931,49952;
r=fm


git-svn-id: svn://10.0.0.236/trunk@77257 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-26 04:03:50 +00:00
anthonyd%netscape.com
57bfacee97 fix for regression, bug#45477
cant insert hrules, images, etc...
r=brade, a=granrose


git-svn-id: svn://10.0.0.236/trunk@74254 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 18:38:24 +00:00
mjudge%netscape.com
1f23cf0495 anthonyd: r=mjudge bug 39919 letting DOM level 2 stuff work for the editor. eliminating createelementNS and using the factory instead.
git-svn-id: svn://10.0.0.236/trunk@74199 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:15:41 +00:00
jfrancis%netscape.com
aa3d7d7f48 bug fixes:
41744 - editor shouldnt be quite as loosy goosy about html 4.0 as CnavDTD is;

41746 - editor ui state (paragraph format feedback) wrong if a <br> is embedded inside the current block;

41971 - using alignment inside table cells gives unexpected results.


git-svn-id: svn://10.0.0.236/trunk@73515 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 09:23:41 +00:00
cmanske%netscape.com
290fb40fb7 Implement switching betweeen TH and TD elements for table editing. b=20973, r=jfrancis, akkana
git-svn-id: svn://10.0.0.236/trunk@72891 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:39:54 +00:00
rbs%maths.uq.edu.au
de23cc3486 Change invalid REC-html40 to correct XHTML namespace. b:7834. a:ekrock@netscape.com
git-svn-id: svn://10.0.0.236/trunk@72300 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 09:54:41 +00:00
mjudge%netscape.com
9ac751705d bug=34896 changing use of CreateElement to CreateElementNS. this was necessary outside of ender-lite also. good change. r=jfrancis a=beppe
git-svn-id: svn://10.0.0.236/trunk@71679 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 01:18:12 +00:00
jfrancis%netscape.com
ed99ef899d fixes:
14753, 29843, 39864, 40141, 
40139, 36679, 39542, 34729, 
34855, 37216, 39292, 26447

r=sfraser,cmanske,fm; a=beppe


git-svn-id: svn://10.0.0.236/trunk@70759 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 23:00:24 +00:00
jfrancis%netscape.com
d3579b5131 fix for 30759, plaintext paste as quotation creates ubercaret
git-svn-id: svn://10.0.0.236/trunk@68653 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-08 07:50:57 +00:00
jfrancis%netscape.com
69a8501658 fixed bug where undo could cause extra break nodes; fixed bug 37845: plaintext gets clutered with empty text nodes; fixed bug where toolbar style feedback was wrong after typing a return.
git-svn-id: svn://10.0.0.236/trunk@68563 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-07 01:33:42 +00:00
jfrancis%netscape.com
5c452edf65 rest of fix for bug 30763
git-svn-id: svn://10.0.0.236/trunk@68435 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 21:57:58 +00:00
mjudge%netscape.com
447ac72532 massive change to prepare for ender-lite. should be a no-op for current implementation
git-svn-id: svn://10.0.0.236/trunk@68218 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 08:33:48 +00:00
jfrancis%netscape.com
4a240e0ec1 partial fix for bug 30763
git-svn-id: svn://10.0.0.236/trunk@68002 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 01:34:34 +00:00
scc%netscape.com
979b51638c making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66274 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:52:02 +00:00
jfrancis%netscape.com
86d514b5e7 Wrote RemoveAllInlineProperties() to deal with clearing out inline style, and also fixed a bunch of IME bugs.
git-svn-id: svn://10.0.0.236/trunk@65879 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:50:19 +00:00
jfrancis%netscape.com
d806359a89 cleanup and small bug fixes
git-svn-id: svn://10.0.0.236/trunk@64637 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 22:57:19 +00:00
jfrancis%netscape.com
74811a7572 re-enable password field code
git-svn-id: svn://10.0.0.236/trunk@64491 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 14:04:26 +00:00
jfrancis%netscape.com
97c011ae42 turning back on password field handling in editor
git-svn-id: svn://10.0.0.236/trunk@64490 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 13:45:08 +00:00
jfrancis%netscape.com
973e5a251c making editor hip to inline style changes on collapsed selections. plus lots of removal of unused code.
git-svn-id: svn://10.0.0.236/trunk@64489 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 12:53:23 +00:00
scc%netscape.com
99d2180703 small changes to clients of string converting APIs
git-svn-id: svn://10.0.0.236/trunk@64174 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-26 11:39:08 +00:00
jfrancis%netscape.com
386e43e682 improved paste performance in editor (WIP) (bug 28783)
set/remove inline stlye rewrite (lots of bug #s)


git-svn-id: svn://10.0.0.236/trunk@63948 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 00:26:47 +00:00
jfrancis%netscape.com
50f00945bf 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.


git-svn-id: svn://10.0.0.236/trunk@61653 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-25 04:39:30 +00:00
jfrancis%netscape.com
4a8620372e fixes for:
27959 - delete broken in editor
24694 - cant get out of link insertion
r=sfraser; a=phil


git-svn-id: svn://10.0.0.236/trunk@61213 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 19:40:18 +00:00
akkana%netscape.com
ec8cee7ba0 24694: Create the bogus node after newly inserted non-text nodes. r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@61021 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 02:11:39 +00:00
jfrancis%netscape.com
88f2fed7a0 fix for 27699: ime text insert screwed up for single line edit fields
git-svn-id: svn://10.0.0.236/trunk@60985 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 00:53:31 +00:00
jfrancis%netscape.com
056f231676 implementing font increase/decrease size for html editor (bug 18774) r=floppy moose
git-svn-id: svn://10.0.0.236/trunk@60127 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 12:53:34 +00:00
jfrancis%netscape.com
a8e66f4adc fix for 24051: modifying password field corrupts pw text; checked in on behalf of buster; r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@59974 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 02:48:36 +00:00
jfrancis%netscape.com
3362dad1b5 fix for 25452 (plain text widgets break IME escape key). checked in on behalf of katakai@japan.sun.com; r=jfrancis
Thanks Katakai!


git-svn-id: svn://10.0.0.236/trunk@59969 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 01:42:14 +00:00
akkana%netscape.com
c0b58e45df 22505 workaround: force plaintext editors to use font-family: monospace to make wrapping work. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@59807 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 23:39:31 +00:00
akkana%netscape.com
831fa6d5c7 22662, 16720: greatly improve formatting of html source for inserted html tags. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@58667 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 00:57:37 +00:00
kin%netscape.com
cccef73207 Fix for bug #24253: [REGRESSION] Redo adds newlines instead of redoing.
mozilla/editor/base/nsEditor.cpp
    mozilla/editor/base/nsEditor.h
      - Added IsMozEditorBogusNode() method.

    mozilla/editor/base/nsTextEditRules.cpp
      - Modified CreateBogusNodeIfNeeded() to check if bodyChild is a
        MozEditorBogusNode so that it doesn't create more than one.
      - Modified DidUndo() and DidRedo() to use IsMozEditorBogusNode().

r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@58161 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 23:45:35 +00:00
buster%netscape.com
4433134a07 removed hard-coded white background now that background colors work for lazily-instantiated
text controls.
completes the fix for bug 9074
r=rods


git-svn-id: svn://10.0.0.236/trunk@58061 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 01:51:36 +00:00
jfrancis%netscape.com
de4c509f39 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)


git-svn-id: svn://10.0.0.236/trunk@58013 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-17 12:41:34 +00:00
jfrancis%netscape.com
741109ca3f fixed 24114 - password fields showing the real text
git-svn-id: svn://10.0.0.236/trunk@58005 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-17 10:24:25 +00:00
jfrancis%netscape.com
3384856d4f * 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 #)


git-svn-id: svn://10.0.0.236/trunk@57934 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 14:29:29 +00:00
jfrancis%netscape.com
861057611a fixed bug 20613 & 21121: both invloved newlines in preformatted text. Layout gives no frames for blanklines caused by newlines, so you cant click or arrow to them. I replace such newlines with breaks now.
fixed 21196: select all no longer selects the special break we use in empty documents (this would cause an invisible selection).

fixed 21430: choosing a new alignment in an empty doc used to do nothing.  Now it works but I've exposed a selection bug inthe process...

fixed 22225: a little unintended re-entrancy caused multiple breaks to be inserted in empty table cells when doc read in.


git-svn-id: svn://10.0.0.236/trunk@57668 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 10:17:35 +00:00
rods%netscape.com
4c2fe057b7 removed the hard-coded font for text editor controls
b 17303 r=buster


git-svn-id: svn://10.0.0.236/trunk@57550 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 15:37:39 +00:00
jfrancis%netscape.com
a39f1285ba fix for 23551: plaintext mail quoting broken. editor rules code was unaware that we were utting html elements into plaintext (namely pre, used to contain the quote). fixed.
git-svn-id: svn://10.0.0.236/trunk@57502 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 02:58:57 +00:00
jfrancis%netscape.com
8f19524dca 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.


git-svn-id: svn://10.0.0.236/trunk@57272 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-10 10:13:58 +00:00
jfrancis%netscape.com
150dc1a9ce continuing the war on the Case Of The Happy Caret
git-svn-id: svn://10.0.0.236/trunk@56838 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-05 12:24:10 +00:00