gecko-dev/editor/libeditor/html
buster%netscape.com 52bb18a74f As a reminder, we decided to do this based strictly content. Some support for style-based text properties is written, but not used
anywhere any more.

* Cleaned up split and join undo/redo.
* Added TypeInState, a data struct that remembers things about text properties for collapsed selections, so you can type
* Ctrl-B with an insertion point and the next character will be bold.
* Added all the logic to handle inline vs. block elements when setting text properties.
* Added some support for italic and underline as well.  Adding these things is pretty easy now.  Ctrl-B, Ctrl-I, Ctrl-U for testing bold, italic, underline.
* Added all the logic to make sure we only add style tags where they're needed, so you should never get the same style tag nested within itself, except as needed for block elements.
* Added methods for testing a node to see if a particular style is set.  This isn't 100% done yet, but with very little work we could have toolbar buttons that respond to selection changed notification that show the state of bold, italic, underline, etc. in real time.  Supports tri-state:  whole selection is bold, some of selection is bold, none of selection is bold, ...
* Fully undoable and redoable.
* Added some debug printfs to transactions and editors.  all controlled by a gNoisy static in each module.  helps me track down undo/redo problems.  if the output bugs people enough, I'll shut it off and re-enable it in my local tree.

Noticably missing:  make un-bold, make un-italic, etc.  This is coming soon.
1999-04-01 17:58:07 +00:00
..
nsEditProperty.cpp As a reminder, we decided to do this based strictly content. Some support for style-based text properties is written, but not used 1999-04-01 17:58:07 +00:00
nsEditProperty.h As a reminder, we decided to do this based strictly content. Some support for style-based text properties is written, but not used 1999-04-01 17:58:07 +00:00
nsHTMLEditor.cpp Editor: Add Insert Link and Image 1999-03-29 22:01:26 +00:00
nsHTMLEditor.h Editor: Add Insert Link and Image 1999-03-29 22:01:26 +00:00
nsHTMLEditRules.cpp First Checked In. 1999-03-29 06:21:01 +00:00
nsHTMLEditRules.h First Checked In. 1999-03-29 06:21:01 +00:00