Commit Graph

343 Commits

Author SHA1 Message Date
buster%netscape.com
b615bb95b3 deleting the last editable object in a document now causes a bogus placeholder <P>&nbsp;</P> to be added to the document. This node has the
attribute MOZ_EDITOR_BOGUS_NODE set to TRUE.  this solves the problem of when you do a SelectAll then a DEL, you don't have a cursor
or any way to set selection in the document. You do still have the problem that the nbsp is pretty narrow and the frame containing it is hard to hit
with the mouse.  We really need the "set selection to frame nearest the mouse down point" operation.

the intent is for all inserts to look for this node, and if found delete it before the insert.  likewise, all deletes will be no-ops if this node is found.
1999-03-12 02:28:24 +00:00
buster%netscape.com
9450d290ae fixed a small bug. mRefNode may be nsnull. 1999-03-12 02:27:48 +00:00
mjudge%netscape.com
17ab7eccaa reverting fix :( 1999-03-12 01:49:12 +00:00
mjudge%netscape.com
d765fc4d34 fixed copy paste issue on windows, linking wrong.lib file 1999-03-12 00:01:24 +00:00
sfraser%netscape.com
694f4956da Fix for 3630 -- terminate text and HTML strings returned from the editor. 1999-03-11 21:31:03 +00:00
sfraser%netscape.com
452e7019bf Fix the key handling, and fix my macro for the charCode stuff 1999-03-11 19:34:28 +00:00
sfraser%netscape.com
0ca9df8689 Add SelectAll() 1999-03-11 19:33:37 +00:00
sfraser%netscape.com
beb4a09d21 Adapted key listener to get char code directly from event, rather than trying to do a key code conversion (#ifdeffed out until char code is there on all platforms). 1999-03-11 06:42:09 +00:00
sfraser%netscape.com
4c25a873df Add widget.shlb to fix link bustage 1999-03-11 01:26:19 +00:00
mjudge%netscape.com
40d69bded8 fixing windows build bustage by temporarily loading the raptorwidget_s.dll when ender.dll is loaded. temporary until repository code working 1999-03-11 00:20:27 +00:00
akkana%netscape.com
a293292ac6 Change the reference to the global selection mgr to fix windows build 1999-03-11 00:08:10 +00:00
akkana%netscape.com
174aeed3d2 Comment out debug prints 1999-03-10 22:50:51 +00:00
akkana%netscape.com
57638ea34c Implement editor cut/copy/paste 1999-03-10 22:46:15 +00:00
akkana%netscape.com
cac34c12b2 Fix Solaris build problems -- thanks to braddr & bruce @ puremagic.com 1999-03-10 22:41:18 +00:00
sfraser%netscape.com
697f88d422 Add Cut, Copy and Paste to editor interfaces and classes, with a stub implemenatioon in nsEditor. 1999-03-10 21:29:41 +00:00
kin%netscape.com
806301a0b5 Changed all occurences of NS_TRANSACTION_MANAGER_FACTORY_CID
and kCTransactionManagerFactoryCID to NS_TRANSACTIONMANAGER_CID
and kCTransactionManagerCID.
1999-03-10 21:27:02 +00:00
sfraser%netscape.com
339921715b Add static to remove warning 1999-03-10 21:26:33 +00:00
kin%netscape.com
17133e31ce Modified the clobber target so that it removes the dll from the bin/components directory. 1999-03-10 21:25:03 +00:00
buster%netscape.com
80388f4d9e first cut at rules delegate for text editor, will change drastically in the next week or two 1999-03-10 19:53:26 +00:00
buster%netscape.com
7ddbcd287f creation of text nodes now supported 1999-03-10 19:51:55 +00:00
buster%netscape.com
cfcffb6aff mNewNode is a DOM Node, not a DOM Element 1999-03-10 19:51:07 +00:00
buster%netscape.com
70eb4bfeed small fix of an off-by-one error in an assertion 1999-03-10 19:50:17 +00:00
buster%netscape.com
efe5fd63d6 SelectAll wired to Ctrl-A. 1999-03-10 19:49:43 +00:00
buster%netscape.com
8aba8ecce7 small interface change to InsertBreak 1999-03-10 19:49:18 +00:00
buster%netscape.com
90d1cec5e4 improvements to InsertBreak, and first crack at adding support for rules delegate 1999-03-10 19:48:46 +00:00
buster%netscape.com
7b37b68fb8 Implemented SelectAll.
Added nsEditor::DoInitialInsert() for doing first insert into an empty document.  Try typing into <html><body></body></html>
Added some smarts to DeleteSelectionAndCreateNode() so it only splits the selected node when appropriate (when the selection is not at offset 0 or max)

CreateElementTxn now creates text nodes as well as DOM elements
1999-03-10 19:48:13 +00:00
buster%netscape.com
fe54c86b01 added nsTextEditRules 1999-03-10 19:47:34 +00:00
buster%netscape.com
4d7a29dc92 added nsIEditRules.h. Experimental, don't count on this. 1999-03-10 19:46:24 +00:00
jfrancis%netscape.com
9baeaa0952 adding nsTextEditRules.cpp 1999-03-10 19:45:23 +00:00
cmanske%netscape.com
714238a1d4 2nd try to get it right in get editor factory method 1999-03-09 23:06:16 +00:00
cmanske%netscape.com
a4506026a7 Fixed editor registration and startup problems 1999-03-09 22:52:24 +00:00
jfrancis%netscape.com
56e205b725 catching up with nsComponentManager and getting rid of cout usage 1999-03-09 20:11:27 +00:00
jfrancis%netscape.com
1436944874 including header 1999-03-09 20:04:59 +00:00
jfrancis%netscape.com
22623a9d12 integrated with content iterator 1999-03-09 19:22:48 +00:00
warren%netscape.com
d18763ac69 Fixed registration methods. 1999-03-09 13:23:36 +00:00
warren%netscape.com
44568143d6 Backed out the nsService template stuff. 1999-03-09 11:49:41 +00:00
warren%netscape.com
4b2d56fbaa nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
cmanske%netscape.com
f2098f2965 Fixed editor classes to do autoregistration correctly and moved target directory to bin/components 1999-03-08 22:46:33 +00:00
sfraser%netscape.com
9c21b16a8e Changed file grouping. 1999-03-06 20:33:07 +00:00
sfraser%netscape.com
9922f25147 Modified OutputText and OutputHTML methods to pass out nsStrings instead of nsIOutputStreams. Also fixed return values, and commented out line termination conversion in Mac outoutput. 1999-03-06 20:32:48 +00:00
mcmullen%netscape.com
5c9516e394 Adapt to new stream interfaces some more. 1999-03-06 02:12:52 +00:00
mcmullen%netscape.com
1b6c1b44be Adapt to new stream interfaces 1999-03-06 00:29:58 +00:00
mcmullen%netscape.com
64af3f3e47 Adapt to new Write() 1999-03-06 00:27:37 +00:00
mcmullen%netscape.com
9798175c73 Removed the offset parameter from the base stream interfaces. Implemented string streams. 1999-03-05 22:53:56 +00:00
cmanske%netscape.com
072ec2c507 Changed editor classes to inherited model. Fixed lots of destructor warnings. 1999-03-05 21:05:35 +00:00
sfraser%netscape.com
c01807b1fd Project change for kostello, approved sar. New link dependency on htmlParser.shlb 1999-03-04 21:57:59 +00:00
kostello%netscape.com
dceb833a0a Added Implementations for OutputHTML and OutputTXT 1999-03-04 21:53:42 +00:00
scc%netscape.com
2ec0a397ea rename |IID()| --> |GetIID()| 1999-03-03 19:48:57 +00:00
mjudge%netscape.com
6497120c24 fixes for selection code, batching at correct point 1999-03-03 01:51:59 +00:00
dp%netscape.com
06a110237c Installing loadable components in components/ directory 1999-03-03 01:25:21 +00:00