gecko-dev/editor/libeditor
Fabien Cazenave 2211444fe6 Bug 442186 - execCommand justify* fails on first line of contenteditable; r=ehsan
Given the way GetPromotedPoint / IsNodeInActiveEditor are designed, when the
selection is in the first child element of the active editing host the
selection is extended outside of editor node.

As a result, `GetNodesFromSelection' (which is called at the beginning of
`WillAlign') returns two nodes:
1. an empty text node, which is enclosed in a <div style="text-align: ***">;
2. the first child element, which is destroyed when it's a <div>;

Proposed solution:
#1 can be avoided by checking that the node is editable in `WillAlign';
#2 can be avoided by not dropping <div> blocks in `RemoveAlignment'.
This is an opportunity to simplify `RemoveAlignment' a bit.
2011-08-10 19:03:34 -04:00
..
base Bug 617528 Part 2 - Core implementation r=smaug 2011-08-08 19:31:32 +02:00
html Bug 442186 - execCommand justify* fails on first line of contenteditable; r=ehsan 2011-08-10 19:03:34 -04:00
text Bug 661297 Part 1: Remove Add/RemoveEventListenerByIID API. r=smaug 2011-08-08 11:26:26 -07:00
Makefile.in Bug 634807 - Remove MOZ_PLAINTEXT_EDITOR_ONLY; r=khuey 2011-03-24 19:59:00 -04:00