Opened 10 years ago
Last modified 10 years ago
#12684 confirmed Bug
Styles removed when cursor is placed at the beginning of a new line
Reported by: | Joel Mizzoni | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Cc: |
Description
Reproduced on demo and nightly build on IE11 on Windows 8.1
Steps to reproduce:
- Apply some font styling (font family, size, colour).
- Type a line and create a new line by pressing enter
- Click the beginning of the new line to position the cursor there. (Optionally, reposition the cursor elsewhere first).
- Begin typing again
Behaviour:
Expected: The text styling on the new line should be the same as that on the previous line
Actual: The style has reset to the editor's default
Change History (2)
comment:1 Changed 10 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.4.5 → 4.0 |
comment:2 Changed 10 years ago by
Summary: | [IE11] Styles removed when cursor is placed at the beginning of a new line → Styles removed when cursor is placed at the beginning of a new line |
---|
This issue is related to #12689.
We should remove empty inline elements in non-empty lines while we could leave empty inline elements in empty lines. This second case requires handling selection as well because when you go to new line an empty inline element is created. If you move cursor, you leave that element and there is no way to enter it again. This would have to be done my selection modification.