for bug #86450: pasting plaintext into text area loses significant whitespace
content/base/src/nsDocumentEncoder.cpp
- Look for -moz-pre-wrap in the correct attribute ("style").
editor/base/nsHTMLDataTransfer.cpp
editor/base/nsPlaintextDataTransfer.cpp
- Set the correct mime-type on the encoder and transfer data.
- Pass correct init flags to encoder.
layout/base/src/nsCopySupport.cpp
layout/base/src/nsCopySupport.h:
- Added IsPlainTextContext() method.
- Modified HTMLCopy() to pass correct init flags and
mime-type to the encoder during plaintext copy.
r=kin@netscape.com,brade@netscape.com sr=sfraser@netscape.com
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.
nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
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
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
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
Fixed infinite loop in PriorVisibleNode() and NextVisibleNode() which would
happen when aNode was a node that could have children, but didn't have any,
and it's prior/next siblings weren't eNormalWS.
r=jfrancis@netscape.comsr=sfraser@netscape.coma=asa@mozilla.org
The fix is to
- maintain the index of PasswordBuf at the start of IME
- maintain the old IME text
- remove the old IME text from PasswordBuf
/r=jfrancis, /sr=kin, /a=blizzard
Added nsAutoUpdateViewBatch class, and use it in
nsPlaintexteditor::Undo()/Redo().
editor/base/nsEditorUtils.h
editor/base/nsPlaintextEditor.cpp
r=jfrancis@netscape.comsr=sfraser@netscape.com
Moved Citer/Wrap files into core editor list. Ifdef'd out HTML
specific transactions with ifndef MOZILLA_PLAINTEXT_EDITOR_ONLY.
editor/base/Makefile.in
editor/base/TransactionFactory.cpp
editor/base/makefile.win
r=akkana@netscape.comsr=sfraser@netscape.com