Commit Graph
4 Commits
Author SHA1 Message Date
buster@netscape.com ff6cf89df5 added delegate code for InsertText (WillInsertText, DidInsertText)
which calls generic WillInsert, DidInsert to test for magic bogus
content and does the right thing.
You now can't delete magic content with user gestures, and when you
insert anything the magic kludgy   is deleted first.
1999-03-13 04:53:21 +00:00
buster@netscape.com 84c5e45ab7 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
sfraser@netscape.com c3aa0eb1b6 Add static to remove warning 1999-03-10 21:26:33 +00:00
buster@netscape.com 63e97b79ee 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