Commit Graph
104 Commits
Author SHA1 Message Date
jfrancis@netscape.com 067bb0b087 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 4c7eb75728 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 71f87809e7 fixes for: 27959 - delete broken in editor 24694 - cant get out of link insertion r=sfraser; a=phil 2000-02-17 19:40:18 +00:00
akkana@netscape.com db9b0e8cd8 24694: Create the bogus node after newly inserted non-text nodes. r=sfraser. 2000-02-16 02:11:39 +00:00
jfrancis@netscape.com 6bf0376ab4 fix for 27699: ime text insert screwed up for single line edit fields 2000-02-16 00:53:31 +00:00
jfrancis@netscape.com 7559ed8f2f implementing font increase/decrease size for html editor (bug 18774) r=floppy moose 2000-02-08 12:53:34 +00:00
jfrancis@netscape.com 74a5207982 fix for 24051: modifying password field corrupts pw text; checked in on behalf of buster; r=jfrancis 2000-02-07 02:48:36 +00:00
jfrancis@netscape.com f060172b0b fix for 25452 (plain text widgets break IME escape key). checked in on behalf of katakai@japan.sun.com; r=jfrancis Thanks Katakai! 2000-02-07 01:42:14 +00:00
akkana@netscape.com 12096f831c 22505 workaround: force plaintext editors to use font-family: monospace to make wrapping work. r=jfrancis 2000-02-04 23:39:31 +00:00
akkana@netscape.com 281e14bc0f 22662, 16720: greatly improve formatting of html source for inserted html tags. r=jfrancis 2000-01-26 00:57:37 +00:00
kin@netscape.com f98db388f1 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
2000-01-18 23:45:35 +00:00
buster@netscape.com 1aff776069 removed hard-coded white background now that background colors work for lazily-instantiated
text controls.
completes the fix for bug 9074
r=rods
2000-01-18 01:51:36 +00:00
jfrancis@netscape.com 9ddc9929c7 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 2e35dbb6a2 fixed 24114 - password fields showing the real text 2000-01-17 10:24:25 +00:00
jfrancis@netscape.com 4d49f9e1e3 * 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 88b877756c 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. 2000-01-13 10:17:35 +00:00
rods@netscape.com b9b9b72692 removed the hard-coded font for text editor controls
b 17303 r=buster
2000-01-12 15:37:39 +00:00
jfrancis@netscape.com 5ce6d52234 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. 2000-01-12 02:58:57 +00:00
jfrancis@netscape.com 4192880dbf 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 86bd708fe0 continuing the war on the Case Of The Happy Caret 2000-01-05 12:24:10 +00:00
jfrancis@netscape.com 193b0fa7aa 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
buster@netscape.com a67a1b7b82 fixed bug 21032 ([regression] can paste multiple lines of text into a single-line text control)
when we were using <BR>'s in plaintext, this wasn't an issue.
when we switched to using \n, we needed to put in an extra check to transform CRLF to space.

partial fix bug 20387 (scroll bars appearing in single line text control)
part of the problem is we were leaving an empty text node lying around after inserting the bogus <br>
this induced layout to add a line after the <BR>, making the document in an empty text control too tall
Kin still has the task of hiding the scroll bar in certain situations, but this was the right thing to do
anyway.

r=kin
1999-12-24 15:48:48 +00:00
rods@netscape.com c0f83de0e2 backing out change and reopening bugs 17303, 19426, the default case where input isn't specified
causes a lot of problems becuase of the style it needs.
r=self
1999-12-23 20:13:46 +00:00
rods@netscape.com 8a635cea2a removed the hard coded font-family in the PlaintextInitalStyle for the set flags
r=buster bugs 17303,19426
1999-12-22 19:41:11 +00:00
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 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 cbaff26b40 some fixes for deletion and also selection movement, contributed by Steve Clark. fixes bug 18537 (backspace can delete entire line); r = buster 1999-11-17 11:30:39 +00:00
akkana@netscape.com 7a9a48c15e 18576: Enclose plaintext replies in a <pre> so they don't get wrapped,
and add appropriate edit rules to split pre tags when editing plaintext.
r=sfraser
1999-11-13 00:26:45 +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 d4e7c918b5 fix for 17673;r=sfraser 1999-11-03 00:07:37 +00:00
jfrancis@netscape.com 2457f846b4 changed bogus node type to br to get rid of annoying space in empty editors; r=kin 1999-11-02 21:35:21 +00:00
ftang@netscape.com 1fadcdc94d add debugging code. fix remove last uncomited IMEText. r=jfrancis 1999-10-27 22:56:36 +00:00
cmanske@netscape.com 5d38026a61 Fixed bugs 12515, 16493,16494,16495,16692,16794,most of 9758. Replaced old 'target' icon with interim 'anchor' icon. r=sfraser 1999-10-20 14:15:25 +00:00
buster@netscape.com 338f20ecd0 fixed my part of bug 15814 (Cleanup build warnings)
so trivial, no reviewer needed
fixed my part of bug  5403 (Services improperly released: Use NS_WITH_SERVICE)
a handful of subtle error handling bugs were fixed as a side effect
r=Akkana
1999-10-08 14:39:20 +00:00
buster@netscape.com bbbba65277 fixed some space leaks reported by kipp. no bug #, r=tague
added some assertions and error checking to nsEditor::Do, no bug #, r=kin
fixed bug 14898 (implemented type-in state for any context), r=jfrancis
1999-10-06 20:27:41 +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
jfrancis@netscape.com 6e591b2920 revised UNDO; introduced first cut at the "mozdiv" typing rules 1999-09-29 20:08:15 +00:00
buster@netscape.com a63b9b0dce very simple extension of a fix already in place for bug 11804 1999-09-22 05:00:58 +00:00
brade@netscape.com 9fe678b37c warning cleanup 1999-09-21 22:32:39 +00:00
buster@netscape.com 8331dd65ca most of the fix for bug 11804, type-in state wasn't properly removing
inline attributes from the next character entered (you're in a bold word
and user clicks bold button, should make next character not bold.)
all done except for font properties.
1999-09-20 04:20:18 +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 32d70beac6 fix for 13677 1999-09-17 23:15:12 +00:00
buster@netscape.com f608eeaaac fixed a warning 1999-09-17 20:17:22 +00:00
buster@netscape.com 9dd0d3daff fixed bug 13810 by removing an extraneous check for empty string. empty strings are perfectly legal
in WillInsertText
1999-09-15 19:43:19 +00:00
buster@netscape.com 0c576c952c fixed bug 13669, wrong password when user typed with 1 or more characters selected 1999-09-14 00:11:22 +00:00
buster@netscape.com 00b768bf6e fixed password editors, while maintaining output of empty HTML documents
fixes bug 13404, a blocker for enabling gfx text controls
1999-09-09 19:39:36 +00:00
sfraser@netscape.com d5bbfdd6e8 Add DocumentIsEmpty to EditorShell.idl and nsIEditor, and modify length and content getters to do the right thing with an empty document (which contains the bogus text node). 1999-09-08 23:32:04 +00:00
jfrancis@netscape.com c6dc7eee62 restoring 1.54 checkin: no longer clearing selection when we detect empty document - selection is a perfectly valid concept in an empty document. fix for bug 13251 is now in layout/src/base/nsRange.cpp 1999-09-08 05:30:48 +00:00
kin@netscape.com 15fc91412c Fix for bug #13251: gfx text fields are not accepting input
Reenabled call to ClearSelection() in nsTextEditRules::WillInsert().
1999-09-07 22:47:50 +00:00