Open Bug 1244669 Opened 5 years ago Updated 5 years ago

justify isn't working when a pararaph has line-returns [contenteditable, execCommand]

Categories

(Core :: DOM: Editor, defect)

47 Branch
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: cyril.auburtin, Unassigned)

Details

(Whiteboard: dom-triaged)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160131030347

Steps to reproduce:

when selecting a line in a paragraph, and executing justifyCenter, nothing happens http://jsfiddle.net/crl/eo4p501n/35/

selecting all line make it work well though, so this is not too important

it could be fixed by justifying the whole paragraph (or only the line like Chrome does, but this needs more work for unwrapping/merging div for avoiding many nesting)


other maybe related justify bug https://bugzilla.mozilla.org/show_bug.cgi?id=442186


Actual results:

nothing


Expected results:

paragraph justified maybe
edit: inserting <div> in <p> is a very bad idea (invalid html), that chrome should fix https://code.google.com/p/chromium/issues/detail?id=582908
Component: Untriaged → Editor
Product: Firefox → Core
Whiteboard: dom-triaged
You need to log in before you can comment on or make changes to this bug.