also fixes for:
101342 : Extraneous <br> when <td> content is <textarea>
104499 : when using the decrease indent, caret hops to the end of the previous line
r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@110371 18797224-902f-48f8-a5cc-f745e15eee43
45888: center followed by heading 2: text doesn't take on heading 2
102754: Lists with Headings applied do not create new list items when return entered
9835: Indent button behaves differently if <li> contains two <br>
r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@108818 18797224-902f-48f8-a5cc-f745e15eee43
mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
mozilla/editor/libeditor/html/nsHTMLEditRules.cpp
mozilla/editor/libeditor/html/nsHTMLEditRules.h
mozilla/editor/libeditor/html/nsHTMLEditor.h
mozilla/editor/libeditor/text/nsTextEditRules.h
- Added nsHTMLEditRules::WillLoadHTML() which removes any mBogusNode.
- Modified nsHTMLEditor::LoadHTML() to call Will/DidDoAction().
- Changed all references of kOpHTMLLoad to kOpLoadHTML to match
function name, and added kLoadHTML.
r=jfrancis.netscape.com sr=sfraser.netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107735 18797224-902f-48f8-a5cc-f745e15eee43
Modified WillMakeList() to clear prevListItem after adding a block
to a list item so that any inline nodes after the block are put
in a new list item.
r=jfrancis@netscape.comsr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107105 18797224-902f-48f8-a5cc-f745e15eee43
77902: toggling from normal to source view and back in composer can leave source in normal view.
101645: big/small tags get seperately wrapped around br nodes
81315: drag and drop doesn't behave same as copy paste
90759: ascii spaces don't behave in IME mode
96328: cant outdent certain indented text
58629: some mail messages cannot be accurately quoted on reply
93088/93477: forward deletion broken
46290: relative font size controls dont play nice with absolute font size
r=various; sr=kin
git-svn-id: svn://10.0.0.236/trunk@105922 18797224-902f-48f8-a5cc-f745e15eee43
Modified WillDeleteSelection() to make sure that
sibling is a TextNode before trying to join it
with startNode (which is guaranteed to be a text node).
r=jfrancis@netscape.comsr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@105768 18797224-902f-48f8-a5cc-f745e15eee43
r=ftang, sr=kin@netscape.com
Cursor is an ambigous term - use caret to refer to the text caret in Bidi functions
git-svn-id: svn://10.0.0.236/trunk@104268 18797224-902f-48f8-a5cc-f745e15eee43
bug 83918 - Not able to start a list (number or bullets) when using Bold style
bug 62347 - Selecting "Body Text" doesn't change style if in <pre> text that has <br>
bug 86476 - ubercaret appears on multi-line text block
bug 87882 - pasting text from one bullet to another yields extra bullet
---------------
r=sfraser; sr=kin
git-svn-id: svn://10.0.0.236/trunk@101631 18797224-902f-48f8-a5cc-f745e15eee43
bug #91288 (Aligning blank table cell in show all tags mode splits table)
Modified WillAlign to prevent unnecessary splitting:
- Don't execute emptyDiv special case code when start container of the
selection is a table cell element, but not a table cell or caption.
- Prevent processing of whitespace between list/table structure nodes.
- Prevent splitting when processing sub lists.
r=brade@netscape.comsr=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@99847 18797224-902f-48f8-a5cc-f745e15eee43
Modified nsHTMLEditRules::WillDeleteSelection() so that it uses
an nsAutoTxnsConserveSelection auto-variable to prevent the
call to nsWSRunObject::PrepareToDeleteRange() from changing
the selection.
r=brade@netscape.comsr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@99516 18797224-902f-48f8-a5cc-f745e15eee43
69320: making new block must put selection in block
74722: pasting into a pre block should not nest pre's
82421: ubercaret after ending list
67847: deletion can put caret incorrectly at start of doc
git-svn-id: svn://10.0.0.236/trunk@97532 18797224-902f-48f8-a5cc-f745e15eee43
61232 - Caret comes back to previous line after creating paragraph
54520 - Extra break with list items
54539 - Disappearing numbered list with outdent
60867 - Composer adds extra break when round-tripping empty document through View Source
62347 - Selecting Body Text doesn't work inside other blocks that have embedding breaks
git-svn-id: svn://10.0.0.236/trunk@97351 18797224-902f-48f8-a5cc-f745e15eee43
mozilla/editor/base/nsHTMLEditRules.cpp
- Moved list handling code in WillRemoveList() into a new recursive
method RemoveListStructure() which WillRemoveList() now calls.
- Modified WillOutdent() to call MoveNode() when a sublist is encountered.
- Made ConvertListType() recursive so that all sublists are coverted.
mozilla/editor/base/nsHTMLEditRules.cpp
- Added RemoveListStructure() method.
r=jfrancis@netscape.comsr=sfraser@netscape.coma=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@97214 18797224-902f-48f8-a5cc-f745e15eee43
r=jfrancis, sr=sfraser, r=leaf for build changes
Putting back Bidi selection code that was removed by 65557
git-svn-id: svn://10.0.0.236/trunk@95640 18797224-902f-48f8-a5cc-f745e15eee43