Opened 7 years ago

Closed 5 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:1 Changed 6 years ago by haysmark

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:

<P><STRONG>para 2</STRONG><BR></P>

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.

Last edited 6 years ago by haysmark (previous) (diff)

comment:2 Changed 5 years ago by bill

Resolution: patchwelcome
Status: newclosed

Unlikely this will be fixed unless someone wants to supply a patch (including a test case).

Note: See TracTickets for help on using tickets.