#16587 closed Bug (duplicate)
[Safari] Failing test in plugins/font/font
| Reported by: | Tomasz Jakut | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 4.5.0 |
| Keywords: | Cc: |
Description
The test is failing in this suite:
tests/plugins/font/font test apply font size over another font size (collapsed selection in empty span) there is only one span in the editable Expected: 1 (number) Actual: 3 (number)
Safari is creating three new spans instead of one: the desired one, surrounded by two empty ones.
<p>x<em><span style="font-size:24px;"></span><span style="font-size:24px">bar</span><span style="font-size:24px;"></span></em>x</p>
Safari version: 10.0.1
Change History (10)
comment:1 Changed 9 years ago by
| Status: | new → confirmed |
|---|
comment:2 Changed 9 years ago by
| Milestone: | CKEditor 4.6.0 → CKEditor 4.6.1 |
|---|
comment:3 Changed 9 years ago by
comment:4 Changed 9 years ago by
I could reproduce it starting with CKEditor 4.4.7 version, so it seems that it's a feature introduced by recent Safari updates.
comment:5 Changed 9 years ago by
| Owner: | set to Marek Lewandowski |
|---|---|
| Status: | confirmed → assigned |
comment:6 Changed 9 years ago by
The problem is within insertHtml() method which is called internally by editor.insertText( 'bar' ). Basically what happens is that another span{font-size) is created for each selection boundary, so you end up with three spans.
comment:7 Changed 9 years ago by
| Milestone: | CKEditor 4.6.1 → CKEditor 4.6.2 |
|---|
comment:8 Changed 9 years ago by
| Owner: | Marek Lewandowski deleted |
|---|---|
| Status: | assigned → confirmed |
Don't have the time to further investigate it.
comment:9 Changed 9 years ago by
| Resolution: | → duplicate |
|---|---|
| Status: | confirmed → closed |
This is a dup of #16588 (as the cause of this issue is the same, for more details see #16588#comment:6).
comment:10 Changed 9 years ago by
| Milestone: | CKEditor 4.6.2 |
|---|

Ignored in git:c0e4dc3.