DescriptionPreserving inline style of the replaced block element for FormatBlock('execCommand').
With 'FormatBlock', the newly inserted block-style element would not possess
any of the inline style properties of the original block element containing the
current selection.
Thus, as the associated bug describes, we need to either add a style attribute
to the newly added block-style element or, add another style span with the
inline style of the replaced block element.
This patch takes the approach of adding the inline style to the new block-style
element itself.
BUG=324181
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163137
Patch Set 1 #Patch Set 2 : Rebaselining #
Messages
Total messages: 4 (0 generated)
|