Opened 13 years ago
Last modified 12 years ago
#8549 confirmed Bug
[IE, Webkit] can not delete selected text in table contents
Reported by: | yiminghe | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Selection | Version: | 3.0 |
Keywords: | IE, Webkit | Cc: | alvaro.lechner@… |
Description
1.open ckeditor at trunk in ie (ie6 or native ie8) and switch to source mode 2.input the following source:
<table border="0" style="width: 100%" title="tbdescguide"> <tbody> <tr> <td> <p> 士大夫士大夫都</p> </td> </tr> <tr> <td> <p> 12345678</p> </td> </tr> </tbody> </table>
- switch to wysiwyg mode and select text "12345678" or "2345678" or "5678" using mouse (here you can note :user's selection is changed automatically , for details you should see pics in the attachment )
- press backspace button
expect :
selected text removed
actual result:
selected text still remains ,but selection gone and cursor goes to the start position of the original selection.
PS: you can not ctrl-x or ctrl-v for that selected text too, maybe the selection is broken when it is changed automatically in step 3 .
PS2: tinymce has the same problem , maybe it's a stubborn bug for ie not for editor.
Attachments (2)
Change History (6)
Changed 13 years ago by
Attachment: | original.png added |
---|
Changed 13 years ago by
Attachment: | changed_automatically.png added |
---|
selection is changed automatically ( empty space after '8' )
comment:1 Changed 13 years ago by
Keywords: | IE added; selection broken ie removed |
---|---|
Status: | new → confirmed |
Version: | 3.6.3 (SVN - trunk) → 3.0 |
There seem to be two issues with the above code.
In IE8
E.g. select 123^45678^
and press backspace. Text won't get deleted and cursor will end up at the beginning of the selection. 123^45678
In IE6 and IE7
E.g. Click inside 123^45678
and select 123^45678 ^
but don't stop right after 8. Go a little bit farther. You will see that whole td content gets selected
^12345678 ^
.
NOTE: When whole text gets selected and you are still holding left mouse button, move the cursor to the left and then to the right again - the selection will get fixed.
Both issues have been reproducible from CKEditor 3.0.
comment:2 Changed 13 years ago by
This bug is also reproducible in current Webkit browsers!
Chrome 17.0.963.56 m and Safari 5.1.2 both have these issues in CKEditor 3.6.2. Tried both also in WinXP and Win7, same problems.
FF10.02, Opera 11.60, IE9 - working as expected.
Strange thing is: This is only an issue with text that is inside a table's <td>. (Partial) text outside of tables can be deleted without any issues!
The text inside of a <td> doesn't even have to have formatting like in the example above, just type text and there you have it.
comment:3 Changed 13 years ago by
Keywords: | Webkit added |
---|---|
Summary: | [ IE<9 ] can not delete selected text → [IE<9, Webkit] can not delete selected text in table contents |
comment:4 Changed 12 years ago by
Cc: | alvaro.lechner@… added |
---|---|
Summary: | [IE<9, Webkit] can not delete selected text in table contents → [IE, Webkit] can not delete selected text in table contents |
In IE9 if you click on start of string e.g. ^12345678
then press shift-end you cannot delete the selected text.
Another issue: if you duplicate the table, insert a blank line in first row of second table and do the same procedure above selecting on first table. IE, Chrome and Safari remove the entire second table.
<table border="0" style="width: 100%;" title="tbdescguide"> <tbody> <tr> <td> <p> 士大夫士大夫都</p> </td> </tr> <tr> <td> <p> 12345678</p> </td> </tr> </tbody> </table> <table border="0" style="width: 100%;" title="tbdescguide"> <tbody> <tr> <td> <p> </p> <p> 士大夫士大夫都</p> </td> </tr> <tr> <td> <p> 12345678</p> </td> </tr> </tbody> </table> <p> </p>
user's selection