Opened 9 years ago
Closed 7 years ago
#14712 closed defect (patchwelcome)
EDITOR: Div breaks cause styling problems
Reported by: | mtyson | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Editor | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
In trying to work around bug #13399 I switched to div for line breaking. This cause a problem with styling: if you style text and hit enter, the next line will lose the styling. If you then put the cursor back to the original line and add more text, it also lacks the styling.
Change History (2)
comment:2 Changed 7 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
Unlikely this will be fixed unless someone wants to supply a patch (including a test case).
Note: See
TracTickets for help on using
tickets.
Yes this behavior is inconsistent with what word processors and Google Docs do. The expected behavior in this case is to copy the style of the last character in the block. I do not think this issue is div specific. For instance:
The P is the block node with some bold text. If you press enter with this entire range highlighted, the editor loses the style because the style belonged to the children of the block node.