Open Bug 1350541 Opened 9 years ago Updated 3 years ago

Line breakers in composition string are not converted to <br> element in HTML editor

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

Tracking Status
firefox55 --- affected

People

(Reporter: masayuki, Unassigned)

References

()

Details

(Keywords: inputmethod)

STR: 1. Load the testcase of URL field. 2. Set focus to each editor. 3. Insert template from ATOK (including one or more line breakers) Expected: The template's line breakers work as expected in all editor. Actual: Only in <div contenteditable>, the line breakers are converted to ASCII whitespaces. This is caused by CompositionTransaction. CompositionTransaction just treats as composition string is in a text node. So, our editor does not support multi line composition string.
I wonder, we still don't know IMEs which include linebreaks in uncommitted composition string. So, perhaps, it must be reasonable to support linebreaks only when committing composition. (I guess that if we'd support this perfectly, we'd need a lot of changes since current code depends on that composition string is only in a text node.)
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
(And I guess that if linebreaks are in uncommitted composition string, it must be not work fine with other rich text editors like Word.)
Priority: -- → P3

Resetting assignee which I don't work on in this several months.

Assignee: masayuki → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.