Opened 9 years ago
Last modified 8 years ago
#13842 assigned Bug
List Plugin adds extra <br> when making styled text a list
Reported by: | scott schmitz | Owned by: | Tomasz Jakut |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | |
Component: | Core : Lists | Version: | 4.5.0 |
Keywords: | Cc: |
Description (last modified by )
Steps to reproduce
- you can use the demo - type in 5 lines of text. Break the lines with shift+return
- Select that text and some more and make all that text bold
- Select 3 of those lines and click on the list control
Expected result
You will see that extra return characters have been added to the list items
Actual result
The list should be clean with no extra CR's.
Other details (browser, OS, CKEditor version, installed plugins)
This test was run on 4.5.4 This bug was NOT present in version 3.6.6
Related Issues
Attachments (5)
Change History (23)
comment:1 Changed 9 years ago by
Changed 9 years ago by
Attachment: | margins.png added |
---|
comment:3 Changed 9 years ago by
OK, I'll explain with some screen shots.
- I type in several lines and when I type return I hold down the shift key. See screen shot 1
- I select all of the text in the field and make it bold - see screen shot 2.
- I select the text that is one, two, three and click on the unordered list control - see screen shot 3
As you can see it does not look right. I have included shot 4 screen shot which shows how things should look.
thanks,
Scott.
comment:4 Changed 9 years ago by
Replying to j.swiderski:
Please see attached image.
The only extra "return characters" I have found were list margins added by browser. These margins can be overwritten by defining list rules in contents css e.g.
ul {margin:0;
}.I'm closing this issue as invalid. @SSchmitz99 if this is not what you have meant and there are some new lines, please provides exact steps to reproduce this issue and provide a screen shot.
OK, I'll explain with some screen shots.
I type in several lines and when I type return I hold down the shift key. See screen shot 1 I select all of the text in the field and make it bold - see screen shot 2. I select the text that is one, two, three and click on the unordered list control - see screen shot 3 As you can see it does not look right. I have included shot 4 screen shot which shows how things should look.
thanks,
Scott.
comment:5 Changed 9 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.5.4 → 4.5.0 |
I have removed my previous comment because I have missed the "bold the text" part.
@SSchmitz99 thank you for further explanations - issue is valid, reproducible in all browsers from CKEditor 4.5.0
comment:6 Changed 9 years ago by
Milestone: | → CKEditor 4.5.5 |
---|---|
Priority: | Normal → High |
comment:7 Changed 9 years ago by
Owner: | set to Tomasz Jakut |
---|---|
Status: | confirmed → assigned |
comment:8 Changed 9 years ago by
The problem is caused by changes from 1f2496, most probably the line #395 from core/dom/range.js
(not passing toStart
as a second argument of node.append
method).
comment:9 Changed 9 years ago by
Milestone: | CKEditor 4.5.5 → CKEditor 4.5.6 |
---|
comment:10 Changed 9 years ago by
Milestone: | CKEditor 4.5.6 → CKEditor 4.5.7 |
---|
comment:11 Changed 9 years ago by
Milestone: | CKEditor 4.5.7 → CKEditor 4.5.8 |
---|
comment:12 Changed 9 years ago by
Description: | modified (diff) |
---|
comment:13 Changed 9 years ago by
Milestone: | CKEditor 4.5.8 → CKEditor 4.5.9 |
---|
comment:14 Changed 8 years ago by
Milestone: | CKEditor 4.5.9 → CKEditor 4.5.10 |
---|
comment:15 Changed 8 years ago by
Milestone: | CKEditor 4.5.10 → CKEditor 4.5.11 |
---|
Moving tickets to the next milestone.
comment:16 Changed 8 years ago by
Milestone: | CKEditor 4.5.11 → CKEditor 4.6.1 |
---|
comment:17 Changed 8 years ago by
Moving to 4.6.2 minor release, as 4.6.1 is mostly about polishing 4.6.0.
comment:18 Changed 8 years ago by
Milestone: | CKEditor 4.6.1 → CKEditor 4.6.2 |
---|
comment:19 Changed 8 years ago by
Milestone: | CKEditor 4.6.2 |
---|
As much as we need it, we won't be able to contain it within upcoming release. Moving to our hi prio todolist.
I tested this on Firefox and on Chrome and got the same result