get bold/italic/underline toolbar feedback working (24574);
fix for 24856: unable to unbold text;
fix for 24572: cant get selection between split lists
git-svn-id: svn://10.0.0.236/trunk@59246 18797224-902f-48f8-a5cc-f745e15eee43
Now, instead of inserting text nodes containing whitespace and newlines
into the content tree, the editor adds a fake attribute "_moz_dirty"
to every node it creates, and relies upon the output system to format
any node with that attribute (and, of course, not output the attribute).
r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@58985 18797224-902f-48f8-a5cc-f745e15eee43
Modified all body methods to deal with the body node for HTML documents,
and the document root node for all other types of documents. Renamed
all body methods.
r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@58811 18797224-902f-48f8-a5cc-f745e15eee43
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
git-svn-id: svn://10.0.0.236/trunk@58161 18797224-902f-48f8-a5cc-f745e15eee43
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)
git-svn-id: svn://10.0.0.236/trunk@58013 18797224-902f-48f8-a5cc-f745e15eee43
* 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 #)
git-svn-id: svn://10.0.0.236/trunk@57934 18797224-902f-48f8-a5cc-f745e15eee43
Fixed bug that prevented us from removing properties starting at the
zeroth position in the string.
r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@57736 18797224-902f-48f8-a5cc-f745e15eee43
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.
git-svn-id: svn://10.0.0.236/trunk@57668 18797224-902f-48f8-a5cc-f745e15eee43
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.
git-svn-id: svn://10.0.0.236/trunk@57272 18797224-902f-48f8-a5cc-f745e15eee43
16015: Add API and implementation for delete-to-beginning (^U). r=slamm,rhp
490: Insert formatting newlines when inserting new nodes. r=rhp
git-svn-id: svn://10.0.0.236/trunk@56743 18797224-902f-48f8-a5cc-f745e15eee43
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).
git-svn-id: svn://10.0.0.236/trunk@56714 18797224-902f-48f8-a5cc-f745e15eee43
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
git-svn-id: svn://10.0.0.236/trunk@56544 18797224-902f-48f8-a5cc-f745e15eee43
r=dcone
For this part of the fix, removed a precondition check for a null input param. It's legal (and necessary) here.
git-svn-id: svn://10.0.0.236/trunk@56506 18797224-902f-48f8-a5cc-f745e15eee43
to get log playback working again.
r=buster@netscape.com,cmanske@netscape.com a=don@netscape.com
git-svn-id: svn://10.0.0.236/trunk@56393 18797224-902f-48f8-a5cc-f745e15eee43