Peter.VanderBeken%pandora.be
47d931e2cd
Renaming NS_PARSER_IID to NS_PARSER_CID, because it *is* a CID. r=jag, sr=jst.
2001-03-10 21:02:12 +00:00
brade%netscape.com
347aad29a1
stop propagation on drop over non-editable fields (unfortunately we have to additionally catch it in the drop since someone else might have accepted the drag for us); sr=kin
2001-03-02 14:11:55 +00:00
blakeross%telocity.com
38794d139f
UIEvent button property is incorrect according to the DOM2 spec. Changing values to 0, 1, 2 (left, middle, right mouse buttons respectively) from 1, 2, 3. |event.which| continues to use the old values for backwards compatibility. This affects future xbl, js, and c++ event button checks so please see the newsgroups for more info (60703). r=timeless sr=jst
2001-03-02 03:07:53 +00:00
blakeross%telocity.com
2d55400a1d
Making editor's |dont_AddRef| usages easier on the eyes (56033). r=timeless sr=scc
2001-02-26 00:28:58 +00:00
blakeross%telocity.com
ee47e675f3
Make tab and shift+tab move to the next and previous (focusable) elements for textfields (2083, 47282). r=brade sr=sfraser
2001-02-16 03:40:15 +00:00
brade%netscape.com
5ee3ad85eb
preventdefault on drag&drop over non-editable fields
2001-02-07 13:42:24 +00:00
anthonyd%netscape.com
e177704f0e
landing jfrancis fix for 67109 - Drag and drop to and from textfields is broken
...
sr=kin
r=anthonyd
2001-02-07 02:50:05 +00:00
brade%netscape.com
075f53d3d8
caret method renamed to GetCaretCoordinates; r=kin; sr=sfraser
2001-02-05 15:44:38 +00:00
dbaron%fas.harvard.edu
fb225b8763
Convert correct usage of |nsCOMPtr<T>::operator&| to use |address_of| since the operator& will soon become private. b=59414 r=disttsc@bart.nl
2001-02-04 19:39:56 +00:00
akkana%netscape.com
19a79462ba
66718: fix a signed/unsigned problem. r=cmanske, sr=kin
2001-01-31 22:55:15 +00:00
blakeross%telocity.com
7643d2d739
Fix 66500 (plaintext editor case): paste is disabled for readonly textfields. r=timeless sr=sfraser
2001-01-31 02:50:16 +00:00
jfrancis%netscape.com
fb60392b41
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
2001-01-28 20:13:07 +00:00
akkana%netscape.com
9bb492fd88
64665: don't hardwire wrap width to 72. Also fix some warnings. r=jfrancis, sr=kin
2001-01-25 23:12:16 +00:00
anthonyd%netscape.com
101cc14924
fix for bug #59003 fix for keybindings
...
sr=kin@netscape.com
r=akkana@netscape.com
2001-01-09 23:22:56 +00:00
akkana%netscape.com
d53a276b40
33088: restructure editor output routines. r=kin,buster,adamlock sr=sfraser
2001-01-08 21:01:29 +00:00
dbaron%fas.harvard.edu
fa7d014c05
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
2000-12-09 04:46:08 +00:00
akkana%netscape.com
d20c260cc6
Split plaintext methods off into nsIPlaintextEditor API. sr=sfraser, r=jfrancis
2000-11-17 00:25:31 +00:00
warren%netscape.com
cd56c0575b
Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
2000-10-28 22:17:53 +00:00
warren%netscape.com
9a6d92a433
Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
2000-10-27 22:43:51 +00:00
jst%netscape.com
6ea631e28c
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
2000-10-07 10:57:30 +00:00
mjudge%netscape.com
9f6d3e1303
r=sfrasier a=pdt+ fixing plain text mail 33654 see kin@netscape.com
2000-09-22 00:43:44 +00:00
joki%netscape.com
aa0f12ff69
Partially fix bug 28323 by changing the text field editor keypress listener to not add characters into the text field if the user has cancelled the event. r:jst
2000-09-15 06:09:26 +00:00
akkana%netscape.com
46cd04d95d
Fixing solaris build bustage: substring workaround suggested by scc
2000-09-14 21:27:59 +00:00
akkana%netscape.com
18342dbd80
51799: Smarter quote rewrapping, taking into account multiple quote levels, and RFC2646-style citations. r=cmanske
2000-09-14 19:55:40 +00:00
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
rayw%netscape.com
0257791053
Bug 37275, Changing value of all progids, and changing everywhere a progid
...
is mentioned to mention a contractid, including in identifiers.
r=warren
2000-09-13 23:57:52 +00:00
akkana%netscape.com
99628b2337
52035, 52171: Fix some recent regressions in key bindings. r=hyatt,jfrancis
2000-09-12 02:01:12 +00:00
cmanske%netscape.com
0ea8fba700
Composer bugs: Drag and drop problems (47399, r=anthonyd), workaround for bad dragNdrop event (50703, r=nisheeth)
2000-09-05 23:26:48 +00:00
akkana%netscape.com
31d9c7fbca
50311, 51088: fix a hang/crash in Rewrap. r=scc
2000-09-01 22:27:26 +00:00
akkana%netscape.com
783035aa7e
50935: make multiline paste into single line text control switchable. r=mjudge
2000-09-01 21:12:43 +00:00
pinkerton%netscape.com
4f3a971cb3
don't bubble the onDragOver event when we decide that the drop is allowable. This prevents it from being reset by someone else higher up the chain. r=anthonyd. bug# 47428.
2000-08-30 01:18:11 +00:00
akkana%netscape.com
d9d40942bd
23485: make it possible for urlbar to go to urls spanning multiple lines. r=jfrancis
2000-08-28 22:15:03 +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
anthonyd%netscape.com
112b262913
fix for bug 48624 (hidden selection issues with plain text widgets)
...
fix for bug 45662 (updating range impl to dom spec)
fix for some edge case selection issues invloving multiple windows, no bug #
but saari knows about this.
r: sfraser, jfrancis, mjudge, saari
a: beppe
2000-08-24 03:54:30 +00:00
akkana%netscape.com
7eccb199f7
Correct an error in a comment
2000-08-21 23:54:59 +00:00
anthonyd%netscape.com
9132d3b807
bug fix for 47399
...
dropping a drag session onto the originating selection
should do nothing.
r: mjudge, jfrancis
2000-08-10 01:01:18 +00:00
bratell%lysator.liu.se
f30a2447a8
Fix for bug 46306, html-to-plaintext replies have > on blank lines. The fix was to strip ending new lines in the citer. r=akkana, a=waterson.
2000-08-07 06:05:27 +00:00
shanjian%netscape.com
de23b7e7a9
#14022 IME98 Reconversion does not work in HTML Editor
...
r = jfrancis
a = ftang
fix proposed by m_kato@ga2.so-net.ne.jp
New events are added to support reconversion. As a result, many files
are affected. They are:
editor:
nsEditor.h nsEditor.cpp nsEditorEventListeners.cpp nsEditorEventListeners.h
nsHTMLEditor.h nsHTMLEditor.cpp nsIEditorIMESupport.h
dom and layout:
nsIPrivateCompositionEvent.h nsDOMEvent.h nsDOMEvnet.cpp nsEventListenerManager.cpp
nsIDOMCompositionListener.h
widget:
nsGUIEvent.h nsWindow.h nsWindow.cpp
2000-08-04 21:43:29 +00:00
anthonyd%netscape.com
940be572c5
bug fixes:
...
39529 - caret width not correct for single/muti line textfields, which relied on:
46445 - nsLookAndFeel needs to be a service.
r: mjudge@netscape.com , kin@netscape.com
a:beppe
2000-07-28 22:12:45 +00:00
brade%netscape.com
7ff1ae3049
clean up the code; remove unnecessary code/functions; don't handle delete/fwd delete keypresses if there is a modifier key pressed; bug #41078 ; r=kin
2000-07-27 21:39:48 +00:00
anthonyd%netscape.com
706f605d27
fix for regression, bug#45477
...
cant insert hrules, images, etc...
r=brade, a=granrose
2000-07-14 18:38:24 +00:00
mjudge%netscape.com
aea4ff3323
anthonyd: r=mjudge bug 39919 letting DOM level 2 stuff work for the editor. eliminating createelementNS and using the factory instead.
2000-07-13 23:15:41 +00:00
jfrancis%netscape.com
56d058dd39
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.
2000-06-29 09:23:41 +00:00
cmanske%netscape.com
7193e676db
Implement switching betweeen TH and TD elements for table editing. b=20973, r=jfrancis, akkana
2000-06-22 05:39:54 +00:00
brade%netscape.com
45f6fbf78e
call PreventDefault for key events which we want to "consume" (bug #42510 ); r=smfr
2000-06-20 14:23:43 +00:00
ducarroz%netscape.com
748743bb73
Fix for bug 38716 & bug 38715. Do not kill the dragdrop event when is not a flavor supported by the editfield. R=brade
2000-06-20 01:01:49 +00:00
rbs%maths.uq.edu.au
26742e611c
Change invalid REC-html40 to correct XHTML namespace. b:7834. a:ekrock@netscape.com
2000-06-15 09:54:41 +00:00
mjudge%netscape.com
6f0c30e104
regressions from 34986 ender-lite. listeners now block percolation of events. until we have better fix. r=saari, akkana
2000-06-14 02:58:34 +00:00
akkana%netscape.com
09592145c3
42306: Change middle-mouse paste from MouseDown to MouseClick,
...
and prevent it bubbling up to where navigator.js will handle it.
r=saari,mjudge; a=beppe
2000-06-13 23:19:48 +00:00
mjudge%netscape.com
4d8ea6168b
cleaning up 34896 ender-lite with saari's review.
2000-06-09 21:13:03 +00:00
brade%netscape.com
fa8e2b58fc
drag within editor implemented; r=kin; a=beppe; bug#6255
2000-06-08 14:47:29 +00:00
mjudge%netscape.com
9703a755f8
bug=34896 changing use of CreateElement to CreateElementNS. this was necessary outside of ender-lite also. good change. r=jfrancis a=beppe
2000-06-07 01:18:12 +00:00
kin%netscape.com
82849412ce
Fix for bug #36935 : [i18n] Textwidget doesn't scroll when non-7-bit-ascii chars
...
Made ScrollSelectionIntoView() a static function and called it from HandleText().
editor/base/nsEditorEventListeners.cpp
editor/base/nsEditorEventListeners.h
r=jfrancis@netscape.com a=beppe@netscape.com
2000-05-31 03:18:05 +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
rods%netscape.com
0516e9165c
DD&D now checks for readonly and disabled
...
b 38773
2000-05-16 21:57:06 +00:00
brade%netscape.com
9e0f23802d
enable drop of more types
2000-05-16 14:53:43 +00:00
mjudge%netscape.com
e1ad6bd23a
changes to add hidden attribute on selection. also to make setcaret go through the selection controller
2000-05-11 04:22:32 +00:00
cmanske%netscape.com
0aa739ecd5
Lots of editor feature work: bugs 26286, 34519, 28498, 36998, 37089, 14342. r=sfraser
2000-05-09 23:03:41 +00:00
jfrancis%netscape.com
bd8b43e4c5
fix for 30759, plaintext paste as quotation creates ubercaret
2000-05-08 07:50:57 +00:00
jfrancis%netscape.com
307b8fbcc5
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.
2000-05-07 01:33:42 +00:00
jfrancis%netscape.com
eb2ab3d2ee
rest of fix for bug 30763
2000-05-05 21:57:58 +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
akkana%netscape.com
afedd3f559
Fix warnings
2000-05-03 23:42:25 +00:00
dprice%netscape.com
4feedc9725
fixing 37980, r=mjudge
2000-05-03 03:11:23 +00:00
jfrancis%netscape.com
509b944592
partial fix for bug 30763
2000-05-03 01:34:34 +00:00
anthonyd%netscape.com
ad6918e77a
r: mjudge
...
disabled selection (grey selection) excludes input fields now.
2000-04-30 18:55:13 +00:00
mjudge%netscape.com
67a72ebc1e
massive change to stop the editor fromknowing about nsIPresShell or nsIDocument
2000-04-28 06:20:36 +00:00
mjudge%netscape.com
2c0953e1be
ender lite checkin.
2000-04-27 07:37:12 +00:00
akkana%netscape.com
5709d8739f
Change Save File APIs in layout and editor to eliminate the specific
...
references to text and html and make them more general (take a mime type).
In the editor, prettyprint all output if editor.prettyprint_html is set.
2000-04-26 01:00:50 +00:00
brade%netscape.com
e6b4111fd7
for DragDrop, call InsertFromDrop which will handle the drop for the appropriate flavors (as paste if appropriate)
2000-04-25 14:15:33 +00:00
scc%netscape.com
bb0ce46710
making string conversions explicit
2000-04-21 09:33:45 +00:00
anthonyd%netscape.com
815b66f915
drawing selection as tri-state. on-off-disabled. hardcoded disable color to grey right now. r=mjudge
2000-04-20 23:11:41 +00:00
akkana%netscape.com
c2c750f37e
6276: Add wrapping support for mail.
2000-04-20 22:45:54 +00:00
akkana%netscape.com
fc94fffa54
Wrapping code, useful for citers and perhaps other code
2000-04-20 22:32:56 +00:00
akkana%netscape.com
b16cf77faa
29794: Disable meta-refresh in editor pages.
...
API and some implementation for 6276: rewrap.
2000-04-18 22:39:10 +00:00
scc%netscape.com
04b44006ee
making string conversions explicit
2000-04-18 07:52:02 +00:00
scc%netscape.com
9ac6c4fb06
making string conversions explicit
2000-04-18 07:44:58 +00:00
akkana%netscape.com
b92f151eba
35814: add clipboard type to editor paste methods, and call the right type
2000-04-14 23:38:21 +00:00
cmanske%netscape.com
55e2ac48d1
Lots and lots of bug fixes and XUL widget conversions. Work in progress, but must checkin to allow XPFE to fix bugs
2000-04-14 03:19:31 +00:00
jfrancis%netscape.com
0254b96365
Wrote RemoveAllInlineProperties() to deal with clearing out inline style, and also fixed a bunch of IME bugs.
2000-04-13 21:50:19 +00:00
cmanske%netscape.com
fc8ad1658c
Fixed spell checker bug 34479. r=akkana, a=leaf
2000-04-06 01:17:54 +00:00
jfrancis%netscape.com
f15ea6358d
cleanup and small bug fixes
2000-03-30 22:57:19 +00:00
akkana%netscape.com
121cb1d0b5
33705: obey middlemouse.paste pref in the editor
2000-03-30 01:23:47 +00:00
jfrancis%netscape.com
4b6812ec3c
re-enable password field code
2000-03-29 14:04:26 +00:00
jfrancis%netscape.com
480a5dc8c6
turning back on password field handling in editor
2000-03-29 13:45:08 +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
scc%netscape.com
fd8de8008f
small changes to clients of string converting APIs
2000-03-26 11:39:08 +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
mjudge%netscape.com
880a4f2081
r=jfrancis. small change to stop the editor from scrolling window when it DOESNT handle a key event
2000-03-22 01:30:16 +00:00
akkana%netscape.com
739e5055f3
Fix paste as quotation
2000-03-14 02:57:38 +00:00
akkana%netscape.com
1018c411e5
28279: Joe checked in most of the changes to fix quoting, and this
...
is the rest to remove some extra blank lines. r=jfrancis, a=rickg.
2000-02-25 23:26:46 +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
mjudge%netscape.com
df86826711
a=jar r=sfrasier,jfrancis,akkana bug for editor find not working
2000-02-23 05:07:42 +00:00
akkana%netscape.com
4a62deb1e7
27908: Fix multiple keyboard pastes by disabling ProcessShortCutKeys (finally!) r=brade, a=jar
2000-02-18 21:32:26 +00:00
jfrancis%netscape.com
8f20e69369
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
447ae26d32
24694: Create the bogus node after newly inserted non-text nodes. r=sfraser.
2000-02-16 02:11:39 +00:00
jfrancis%netscape.com
7a0f4cf2e1
fix for 27699: ime text insert screwed up for single line edit fields
2000-02-16 00:53:31 +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
jfrancis%netscape.com
28fd752530
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
ebc0651bbf
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
784eafea80
22505 workaround: force plaintext editors to use font-family: monospace to make wrapping work. r=jfrancis
2000-02-04 23:39:31 +00:00
pinkerton%netscape.com
ff5704575e
native clipboard/d&d impls now handle text/plain internally, always providing text/unicode to a client. fixes bugs 8427 and 24010. r=scc.
2000-02-01 22:26:21 +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
kin%netscape.com
9ef6758595
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
d0f1bda271
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
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
462fd8aa29
fixed 24114 - password fields showing the real text
2000-01-17 10:24:25 +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
a5fc421d20
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
bd90662588
removed the hard-coded font for text editor controls
...
b 17303 r=buster
2000-01-12 15:37:39 +00:00
jfrancis%netscape.com
e171985f93
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
pp%ludusdesign.com
698852a4f4
Converting usage of ::GetIID() to NS_GET_IID().
...
Bug #20232 , r=scc@netscape.com
2000-01-11 20:49:15 +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
6229129616
continuing the war on the Case Of The Happy Caret
2000-01-05 12:24:10 +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
buster%netscape.com
03ce06ed8d
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
a45b5daae1
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
f06bddeda0
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
saari%netscape.com
a622c90955
Fix for PDT+ bugs 21602 and 21648. r=joki
1999-12-15 22:04:43 +00:00
ftang%netscape.com
c5a3d00653
fix bug 12090 19358. Implement ForceCompositionEnd and add it in the beginning of AddInlineProperty/RemoveInlineProperty/InsertElement/InsertHTML
1999-12-08 03:39:36 +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
ftang%netscape.com
5d9824b4bd
add query composition event which get current curosor position. add timer base IME x y location query for gtk. r=erik. fix bug 17916 20550
1999-12-07 01:29:00 +00:00
jfrancis%netscape.com
c7b0e3bedd
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
ftang%netscape.com
55be244e29
change debug code.
1999-12-01 00:35:31 +00:00
akkana%netscape.com
680a88820a
20348: Make alt the modifier for Unix, and generally clean up code. r=brade
1999-11-30 21:58:00 +00:00
pinkerton%netscape.com
3e67aed56d
removing obsolete d&d code and changing from CID's to progID's in d&d code. r=akkana.
1999-11-30 00:10:55 +00:00
pinkerton%netscape.com
ad4a38b0d2
eat drag gesture events for now. r=saari
1999-11-29 22:35:35 +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
3513eb0058
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
brade%netscape.com
2d4081b417
fix bug 14624 (don't handle tab key twice). r=kin@netscape.com.
1999-11-16 14:41:03 +00:00
beard%netscape.com
65a3476676
pork jockey paint fixes. bug=18140, r=kmcclusk,pavlov
1999-11-14 02:51:25 +00:00
akkana%netscape.com
1a67e1996b
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
akkana%netscape.com
3593052cd6
Oops, citer classes weren't initializing refcount, causing an assert on Windows. One-line change, r=rhp
1999-11-12 00:57:55 +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
mcafee%netscape.com
f535f208dc
Switching to use NS_WITH_SERVICE macro as specified in (5403); removing spurious clipboard service instance in nsEditorEventListeners.cpp. r=akkana, a=chofmann.
1999-11-05 01:29:49 +00:00
akkana%netscape.com
c1a800f31c
Fix key event bustage: treat DOM_VK_RETURN and DOM_VK_ENTER equivalently. r=ftang,joki a=chofmann,leaf
1999-11-03 22:05:45 +00:00
joki%netscape.com
1675be15e0
Changes to DOM events to accomodate the new breakdown of events into mouse and key events. This fixes a couple of bug, though the main one is 13406. Involves changes to multiple DOM generated file as well as fixing up usage of DOM event api usage in editor, rdf, and xul. r:vidur
1999-11-03 07:11:45 +00:00
jfrancis%netscape.com
1e84beb217
fix for 17673;r=sfraser
1999-11-03 00:07:37 +00:00
jfrancis%netscape.com
b92307002b
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
braddr%puremagic.com
ea13be0a26
Move all nsIEnumerator usage over to NS_ENUMERATOR_FALSE from NS_COMFALSE in anticipation of nixing NS_COMFALSE in the near future.
...
r=scc
1999-10-28 03:16:48 +00:00
ftang%netscape.com
c4deb92eb0
add debugging code. fix remove last uncomited IMEText. r=jfrancis
1999-10-27 22:56:36 +00:00
braddr%puremagic.com
341c8b0054
Ooops.. tree closed, better back these out for now. Sorry.
1999-10-27 21:01:37 +00:00
braddr%puremagic.com
55276cc3c4
Move all nsIEnumerator usage over to NS_ENUMERATOR_FALSE from NS_COMFALSE
...
in anticipation of nixing NS_COMFALSE in the near future.
r=scc (please contact him should there be any build issues)
1999-10-27 20:24:21 +00:00
akkana%netscape.com
56f9652bab
16844: modifier key presses shouldn't insert anything into the editor. r=brade
1999-10-20 20:02:44 +00:00
cmanske%netscape.com
e7457117e4
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
brade%netscape.com
2029fcbfca
use the proper function calls to get the status for alt, shift and meta keys. bug #16486 . reviewed valeski@netscape.com
1999-10-15 21:20:57 +00:00
brade%netscape.com
b1a69f1bd1
don't allow other modifiers when cut/copy/pasting (bug #15693 ); this missed the keyEvent branch. r=kin@netscape.com
1999-10-15 14:52:45 +00:00
ftang%netscape.com
850606d07a
landing keyEvent_19991004_BRANCH
...
bugs # see the log of the check in into branch
author/reviewer:
mozilla/layout/base/src/nsRangeList.cpp brade/mjudge
mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp brade/ftang
mozilla/layout/events/src/nsDOMEvent.cpp brade/joki
mozilla/layout/events/src/nsEventStateManager.cpp brade/joki
mozilla/widget/public/nsGUIEvent.h akkana/ftang
mozilla/widget/src/windows/nsWindow.cpp ftang/mjudge
mozilla/widget/src/windows/nsWindow.h ftang/mjudge
mozilla/widget/src/mac/nsTextAreaWidget.cpp brade/ftang
mozilla/widget/src/mac/nsMacEventHandler.cpp brade/simon
mozilla/widget/src/xpwidgets/nsKeyBindMgr.cpp brade/ftang
mozilla/widget/src/gtk/nsGtkEventHandler.cpp akkana/?
mozilla/widget/src/gtk/nsWidget.cpp erik/ftang
mozilla/layout/xul/base/src/nsTreeCellFrame.cpp brade/ftang
mozilla/editor/base/nsEditorEventListeners.cpp brade/akkana
mozilla/editor/base/nsHTMLEditor.cpp brade/akkana
mozilla/rdf/content/src/nsXULKeyListener.cpp ftang/saari
fix the master bug- 15693
fix at least, but not limited to, the following bugs
10158,11956,6053,9333,10901,14348,6449,11845,13016,14410,15657,15307,15842,13856
1999-10-14 18:27:01 +00:00
buster%netscape.com
1a165ddf9b
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
7a638a9c93
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
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
cmanske%netscape.com
20f2a8bffa
More list property dialog work. Remaned GetParagraphStyle to more readable GetParagraphTags. Added GetListTags needed for list manipulation. Enhanced GetElementOrParentByTagName to handle lists
1999-09-22 05:52:44 +00:00
buster%netscape.com
49af0dba87
very simple extension of a fix already in place for bug 11804
1999-09-22 05:00:58 +00:00
brade%netscape.com
c7afb94dcc
warning cleanup
1999-09-21 22:32:39 +00:00
joki%netscape.com
3443bcda6f
Changing dom event VK_* names to DOM_VK_*
1999-09-21 14:19:17 +00:00
waterson%netscape.com
7526311e6b
Fix Linux bustage.
1999-09-20 04:50:18 +00:00
buster%netscape.com
a8d68e70d4
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
buster%netscape.com
4c70f46b60
fixed recent bustage on windows that '.' key wouldn't work, making it
...
tough to type URL's in browser. still needs work, but it's usable again.
1999-09-20 04:16:34 +00:00
jfrancis%netscape.com
54d647b458
fixing a heap-o-undo problems and some mBogusNode problems
1999-09-20 01:31:44 +00:00
jfrancis%netscape.com
cae1f90939
putting tab handling back in KeyDown(). Else editor never gets tabs.
1999-09-19 10:30:30 +00:00
jfrancis%netscape.com
a7f35e4051
fix for 13677
1999-09-17 23:15:12 +00:00
buster%netscape.com
1b1462e1dc
fixed a warning
1999-09-17 20:17:22 +00:00
akkana%netscape.com
9e4d4dd4cc
Handle everything in KeyPress; make KeyDown a nop. This also fixes bug 13962
1999-09-17 20:11:13 +00:00
buster%netscape.com
e52e18ffbf
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
sfraser%netscape.com
e435677c81
Use nsAutoStrings where appropriate
1999-09-14 23:40:16 +00:00
buster%netscape.com
4195b67417
fixed bug 13669, wrong password when user typed with 1 or more characters selected
1999-09-14 00:11:22 +00:00
jfrancis%netscape.com
49d7f73dbc
implementing EditorKeyPress and handling tabs in tables and shift-return meaning <br>
1999-09-13 09:37:51 +00:00
jfrancis%netscape.com
8720822aff
adding a default case enum value for rules action enum
1999-09-12 01:33:20 +00:00
brade%netscape.com
1032971d5d
handle hard-coded keybindings on Mac; begin to support new key event spec (lower case letters for charcodes)
1999-09-10 14:42:20 +00:00
buster%netscape.com
ffb3894fd2
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
58b73017cb
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
9c28b6ac69
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
7602564deb
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
jfrancis%netscape.com
03c6026eb0
implementing RemoveList() - ie, list button now works as a toggle
1999-09-06 19:47:25 +00:00
jfrancis%netscape.com
7f0b5337ce
no longer clearing selection when we detect empty document - selection is a perfectly valid concept in an empty document.
1999-09-06 19:45:26 +00:00
bruce%cybersight.com
7c0a2d27b9
Use nsCRT::free() instead of delete[] for char* data.
1999-09-06 06:22:51 +00:00
sspitzer%netscape.com
338479c025
it really scares me to see my password get sent to the console when I type it. it's scaring others, see #13061 . wrapping this code with #ifdef DEBUG_<author>. I'll send them mail directly.
1999-09-03 08:31:33 +00:00
tague%netscape.com
97b0bd802c
Added support for a reply from the StartComposition message. Necessary for XIM support on UNIX.
1999-08-31 01:20:32 +00:00
sfraser%netscape.com
c67d934ba7
Back out cmanske's changes to these files, which he checked by by mistake.
1999-08-31 01:14:40 +00:00
cmanske%netscape.com
523b9079f0
Added checking if we need to save file before allowing close window or exit (bug 7615). Added support for Confirm and Alert message dialogs
1999-08-31 00:51:23 +00:00
pinkerton%netscape.com
50f4479ca0
clean up small mem leak.
1999-08-30 22:18:23 +00:00
buster%netscape.com
8b33ec3088
fixed bug 12680 (password fields broken)
...
fixed bug 12489 (static contructors must be removed)
1999-08-30 22:11:09 +00:00
kin%netscape.com
bfd4c1f102
Fix for bugs #7153 , #10673 , #12066 , #12067 , and #12793 .
...
editor/base/nsEditorEventListeners.cpp
editor/base/nsEditorEventListeners.h
- Added code to scroll the selection into view
after processing key events.
- Commented out the hack that redraws the entire
view when the focus is gained and lost. Replaced
the hack code with calls to RepaintSelection().
layout/base/public/nsIFrameSelection.h
layout/base/public/nsIPresShell.h
layout/html/base/src/nsPresShell.cpp
- Added ScrollSelectionIntoView() and RepaintSelection() methods.
layout/base/src/nsRangeList.cpp
- Added implementation for ScrollSelectionIntoView() and
RepaintSelection().
- Check for NULL primary frame in GetFocusNodeRect()
to fix bug #12793 .
1999-08-30 21:54:40 +00:00
akkana%netscape.com
dbf32d1372
Handle lower-case alt-x as well as upper case
1999-08-28 00:31:06 +00:00
jfrancis%netscape.com
9ea8122814
making nsPresShell and nsDocument support weak references; using weak references to docs and pres shells within the editor
1999-08-25 10:51:55 +00:00
pinkerton%netscape.com
72c115383c
toString -> ToString idl change.
1999-08-25 09:15:18 +00:00
pinkerton%netscape.com
268234cadd
IDL-ifying nsITransferable, nsIDragService, nsIDragSession, nsIFormatConverter.
1999-08-25 08:35:06 +00:00
akkana%netscape.com
ff7a19a5bd
Revise the doc encoder and content sink APIs yet again to make it easier
...
to add new flags (pass a flag in the constructor, rather than specific
booleans. This in order to fix:
11249: Add flag to write only the body in html output.
1999-08-24 18:30:19 +00:00
buster%netscape.com
796446129f
added a special case to the output text rules for an empty document
...
(one that contains the bogus node)
1999-08-24 13:48:08 +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
buster%netscape.com
09e028ee79
Split out installing the editor's own event handler as a separate step.
...
The owner of the editor can now initialize the editor,
set up its own listeners if it wants to, then the editor will set up it's own
backstop listeners as part of PostCreate().
The backstop key listener now ignores ENTER for single line text controls.
Ugly to have to do it here, it would be better if the owner could just swallow the key event.
1999-08-23 06:42:04 +00:00
akkana%netscape.com
de0fab64a7
Handle plaintext wrapping in style, rather than a pre tag in the body. Also fix a couple of warnings.
1999-08-20 22:39:48 +00:00
brade%netscape.com
b2c4160c8a
keyhandling for keybindings moved to keypress (was keydown)
1999-08-20 13:14:03 +00:00
pinkerton%netscape.com
e6c785c88e
add DragGesture to drag listener.
1999-08-19 19:48:33 +00:00
buster%netscape.com
3bc5912284
Fixed a ton of errors where we were not handling error results correctly.
...
Added some comments of the form "// XXX: ERROR_HANDLING <explanation>"
wherever I saw a potential error but wasn't 100% sure of the intention of the code.
Fixed a few bugs along the way.
1999-08-19 13:30:48 +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
4c2532dd8b
fixing bug 9366
1999-08-09 22:51:40 +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
ac5099a587
Fix the nsTextEditRules init so that setting the flags works.
1999-08-09 18:22:13 +00:00
buster%netscape.com
503defd7f0
backed out my last change, it didn't fix the problem I thought it would.
1999-08-09 18:01:08 +00:00
buster%netscape.com
151ee02b62
call SetFlags from Init, so plaintext logic gets executed.
1999-08-09 17:44:14 +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
buster%netscape.com
fd79be28bb
fixed handling of text controls with a max length set
1999-08-07 05:29:41 +00:00
buster%netscape.com
554895cb53
fixed disabled and readonly handling
...
added redraw hack to blur (in addition to focus, already done)
1999-08-07 05:28:57 +00:00
tague%netscape.com
58316bd322
Added support for replies from private DOM text events. See bug #4826
1999-08-06 02:32:13 +00:00
buster%netscape.com
414c95e223
added the same hack for blur as for focus, to force a repaint
...
handle TAB in keyDown, not keyPress, so we can surpress focus manager
using TAB to swap focus from the editor.
1999-08-03 06:07:29 +00:00
buster%netscape.com
1941ea5807
selection and caret are not displayed at Init time any more. This is done on Focus now.
...
checking in temp hack to repaint on focus
1999-08-02 13:53:23 +00:00
buster%netscape.com
cc49e3182a
Clean-up
...
1) fixed unit tests
2) fixed a bunch of leaks having to do with using enumerators. Thanks for noticing these, Simon.
3) fixed a tiny problem in nsTextEditRules::WillDoAction().
This method was overly aggressive in checking input args, sel can be null for some operations.
1999-07-25 18:14:44 +00:00
jfrancis%netscape.com
491557ab29
making plaintext flag force a "white-space: pre" style on the body. this is a fix for bug 9153
1999-07-25 05:34:02 +00:00
joki%netscape.com
d752334449
Updating DOM event apis and changing behavior to properly respect capturing, bubbling, and cancellation methods.
1999-07-19 19:54:34 +00:00
mjudge%netscape.com
c0b1525970
massive checkin for selection. adjusting nsIDOMSelection api and nsIFrameSelection. many "small" changes. this is not as bad as it looks. layout will not be affected other than "getter" calls for selection. and all consumers of selection should be in good shape.
1999-07-18 02:27:19 +00:00
buster%netscape.com
dca6c49edd
replaced IID's with CID's where they were appropriate, and removed lots of
...
NS_DEFINE_IID macros in favor of GetCID() wherever I could.
plus some minor bug fixes.
1999-07-15 19:13:46 +00:00
mjudge%netscape.com
21700e5d88
checkin for carpool for multiple seleciton/ime selection and api changes
1999-07-15 18:19:20 +00:00
sfraser%netscape.com
c9dbb47be6
Don't handle a key event as a keypress if the meta key is down.
1999-07-14 22:29:06 +00:00
akkana%netscape.com
a3fb11b98f
Restructure the editor output routines to allow passing in
...
a mime type and a flag argument. Also fix the following bugs:
9746: get rid of bogus empty <style> in head.
8143: save wrap column in editor shell in case it's set before the
editor is created.
9470, 9488: allow explicit specification of formatted output.
1999-07-14 18:54:29 +00:00
buster%netscape.com
693e31fcd2
workaround for blocker bug 8123. approved by chofmann.
1999-07-08 19:52:44 +00:00
buster%netscape.com
58aa59e827
minor fix for returning when a key is handled or not. This is a tiny part
...
of the fix for 8123, joki is working on the rest with tague and rods.
1999-07-06 23:31:08 +00:00
jfrancis%netscape.com
dcb4b5045a
turning off ill fated coercion of selection for plaintext editing. I'll turn this back on when I know how to correctly detect when it's needed.
1999-07-03 05:13:30 +00:00
jfrancis%netscape.com
5020b85ebb
making the plain text selection pinning savvy to the other flavors of text editors, the ones that DONT have <pre> tags wrapping all the text
1999-07-02 07:53:08 +00:00
akkana%netscape.com
8afa44f109
Oops, making wrapcolumn unsigned was a mistake. (Thanks to slamm's
...
warnings page for showing me that!) Change it back to signed.
1999-07-01 19:01:04 +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
akkana%netscape.com
66024861e2
- New dialog and editor shell API for Insert HTML Source
...
- Add wrapcolumn setting to document encoders, and use it in the editor
- Fix numbered lists in the html to text sink stream.
1999-06-30 19:26:08 +00:00
scc%netscape.com
f79508bc68
|nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()|
1999-06-29 21:01:31 +00:00
tague%netscape.com
353d857fed
Added clause and selection support for Input Methods. Fixes bug #8639 , #8459 , #6989 , #7824
1999-06-29 20:31:22 +00:00
sfraser%netscape.com
90131e6812
Call the Output routines with a new param for selection only.
1999-06-29 20:14:58 +00:00
buster%netscape.com
52fea2d39d
Moved GetTextSelectionOffsets and GetDocumentLength from nsTextEditRules to
...
nsTextEditor. Added GetDocumentLength to nsITextEditor public interface.
1999-06-28 13:36:38 +00:00
buster%netscape.com
96d97515ac
implemented most of max length handling
1999-06-25 22:57:26 +00:00
buster%netscape.com
4707ee0cc9
added rules for password behavior
1999-06-24 23:36:56 +00:00
cmanske%netscape.com
aaa2213d4c
Fixed GetBodyElement. Changed editor test doc to not use CSS for background. Initial code to edit element properties when double-clicking on element.
1999-06-24 20:59:45 +00:00
jfrancis%netscape.com
41074bcccd
editor rules framework for {make list, indent, outdent, change alignment}
1999-06-16 05:02:43 +00:00
mcafee%netscape.com
71f3ec8513
Removing NEW_DRAG_AND_DROP ifdef, this is on by default now.
1999-06-16 04:52:05 +00:00
mcafee%netscape.com
31010fa35d
Minor reformatting.
1999-06-15 04:07:36 +00:00
tague%netscape.com
0ef188f82e
backed out last change.
1999-06-15 01:24:23 +00:00
tague%netscape.com
81b161e737
Modified logic so that shortcut keys are actually returns an NS_OK when the keydown handler handels them.
1999-06-15 01:02:14 +00:00
buster%netscape.com
e8cc730b08
fixed keydown event processing to return NS_OK when a key is not handled.
1999-06-14 23:25:48 +00:00
tague%netscape.com
8688949472
Turned on bug fix for #6896 : Windows editorinterprets the period key as a forward delete.
1999-06-13 21:13:12 +00:00
tague%netscape.com
e885d271de
More work on bug #6896
1999-06-11 20:32:09 +00:00
akkana%netscape.com
87633c23c7
Implement InsertHTML.
...
Also, some minor fixes, like warning removal and addition of error checking
in files which needed it.
1999-06-10 21:31:42 +00:00
akkana%netscape.com
a90ad21220
Add alt-X and alt-shift-x for debug output html and text
1999-06-09 19:12:28 +00:00
tague%netscape.com
d0540fc75b
Conditional fix for #7629 . Only builds with a conditional set in my environment
1999-06-09 03:17:56 +00:00
akkana%netscape.com
9b33e3e633
5380: middle-mouse paste to correct position in the editor
1999-06-08 21:51:40 +00:00
buster%netscape.com
6a3429ddc2
* Added nsAutoSelectionReset, a tiny class that resets the selection to what it was before a block transformation.
...
* Added some code to restore selection after RemoveTextProperty.
* Made a tiny change to the way the editor holds onto the transaction manager, so client (like the ender text control) can
turn undo on and off effectively
* Fixed a bug in IsNodeInline that was causing GetBlockParent to return the wrong parent node (and who knows what
other mischief) where atom compares were being done on strings of different case, for <B>, "b" vs. "B". The DOM
method nsIDOMElement::GetTagName forced the returned tag name to upper case. I don't know how long that has
been true, but I assume it's a fairly recent change (or something on our side related to it changed recently) or this method
never would have worked. I also found a few cases of nsString::Equals that I changed to EqualsIgnoreCase
* Made some general improvements to the interaction between editors and rules, so that the aCancel out param is always
intialized, and all rules with Will... are matched with a Did... call. Added Will/DidSetTextProperty() and
Will/DidRemoveTextProperty(). This helps enable plain text mode. Added a skeleton for max length support in text editor.
* fixed some warnings.
1999-06-08 06:04:51 +00:00
pinkerton%netscape.com
1e3b08c682
changes so that transferable no longer takes ownership of dataflavor string, but correctly copies it. fix some memory leaks as well.
1999-06-07 20:43:23 +00:00
tague%netscape.com
6740fde5bb
Fix for #6896 : Windows editor interprests the '.' key as a forward delete. Not building by default -- will switch over once tested on Mac and Unix.
1999-06-04 05:14:01 +00:00
jfrancis%netscape.com
1522156259
groundwork for block transformation functionality
1999-06-03 06:01:08 +00:00
buster%netscape.com
6b09e8c917
Preparation for ender-based text control
...
* added focus listener. Doesn't do much yet, but when focus notifications start appearing, we'll be ready for them. The code is in
place to hide selection when we lose focus and paint selection when we get focus. That's probably not quite right, but it's a start.
We will need to be able to determine the distinction between losing focus to another control within our app, and losing focus to
another app.
* added support for disabled and readonly states in the editor. This is accomplished by having flags set by the client, and letting the
rules system deal with those flags. The flags I added are:
TEXT_EDITOR_FLAG_PLAINTEXT 0x01 // only plain text editing is allowed
TEXT_EDITOR_FLAG_SINGLELINE 0x02 // enter key and CR-LF handled specially
TEXT_EDITOR_FLAG_PASSWORD 0x04 // text is not entered into content, only a representative character
TEXT_EDITOR_FLAG_READONLY 0x08 // editing events are disabled. Editor may still accept focus.
TEXT_EDITOR_FLAG_DISALBED 0x10 // all events are disabled (like scrolling). Editor will not accept focus.
* added WillInsertBreak/DidInsertBreak into text rules, so flags could be checked. This gets us readonly, disabled, and single line
behavior.
* cleaned up the code that allocates, registers, and destroys event listeners. Thanks to Kin and Simon for cleaning up the
ownership model on the listeners, it was a big help.
* added support for a max text length. You can now tell the text editor, be no bigger than n characters.
1999-05-28 21:24:18 +00:00
sfraser%netscape.com
b7ca9366ce
Fix the event listeners to no longer hold owning pointer to the editor.
1999-05-28 00:19:51 +00:00