Opened 13 years ago
Closed 11 years ago
#8996 closed Bug (fixed)
Pasting into styled content results in multiple style tags instead of just one
Reported by: | Teresa Monahan | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.5 |
Keywords: | IBM | Cc: | Damian, Satya Minnekanti |
Description
To reproduce:
- Open the replacebyclass sample and place the cursor between the words 'sample' and 'text'. Note that these words have a bold styling applied.
- Open the 'Paste as plain text' dialog and type some content.
- Click Ok.
- Switch to source mode to see the HTML content.
Problem: The bold styling is split into 3 different strong tags. It should be merged into one single tag.
Actual Result:
<strong>sample </strong><strong>pasted text </strong><strong>text</strong>
Expected Result:
<strong>sample pasted text text</strong>
This issue is also mentioned in ticket #8908.
It also happens if styled text is pasted into styled content in the editor using Ctrl+V e.g. select the word text in the above sample, place the cursor inside the word sample and use Ctrl+V. There will now be 3 different strong tags for this content.
Change History (3)
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|---|
Version: | 3.6.4 (SVN - trunk) → 3.5 |
comment:3 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
I can confirm that this seems to be working in every browser.
This particular TC has been reproducible from CKEditor 3.5
Before this version (till 3.4.3) the result was: