Opened 13 years ago

Last modified 12 years ago

#8736 closed Bug

IE: Pasting a list after applying font-size to a paragraph wraps list-items in spans — at Version 6

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 3.1
Keywords: IE IBM Cc: monahant@…

Description (last modified by Jakub Ś)

Steps to reproduce:

  1. Go to any sample (using IE)
  2. Copy the bullets from the attached document
  3. Write out, "Hello World"
  4. Select "Hello World" and apply a font-size of 14
  5. Place your cursor at the end of the line, (Hello World^), and press the enter key to create a new line (Element's path is showing body p span)
  6. Paste the bullets using the CTRL+V keyboard shortcut.

Result: All list items are wrapped in span-tags with font-size 14.

The issue has been reproducible from CKEditor 3.1 (In earlier versions results were not even close to the ones presented here)

NOTE:All browsers copy span to another line but only IE applies this span to inline elements or text

Change History (8)

comment:1 Changed 13 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 13 years ago by Jakub Ś

The same thing is happening for E.g. table or header (see attachment).

Last edited 13 years ago by Jakub Ś (previous) (diff)

Changed 13 years ago by Jakub Ś

Attachment: Item List.docx added

Changed 13 years ago by Jakub Ś

Attachment: IE8.png added

comment:3 Changed 13 years ago by Jakub Ś

Actually list items are wrapped in spans when you switch to source mode.
Before switching block element (table/heading/list) is wrapped in inline span (see IE8.png)

This causes extra problems in IE8 and IE9 when following these steps:

  1. Copy list from docx
  2. Clear editor contents with Click, CRTL+A, Backspace
  3. Type hello world, select it SHIFT+Home and apply font 14px
  4. Unselect with right arrow
  5. Paste list with CRTL+V
  6. Press Backspace

Result:
IE9 cursors jumps before getting to last list item.
IE8 last letter of last item is deleted but cursor is displayed in wrong place. Additionally after pressing backspace CRTL+A won't work.

Last edited 12 years ago by Jakub Ś (previous) (diff)

comment:5 Changed 13 years ago by Jakub Ś

The same root of the problem (pasting block into inline in IE) is applicable for other tickets: #9207, #8294, #9740. I think they all can be fixed with one patch.

Last edited 12 years ago by Jakub Ś (previous) (diff)

comment:6 Changed 13 years ago by Jakub Ś

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy