Opened 14 years ago
Closed 11 years ago
#6840 closed Bug (expired)
Wysiwyg: When setting editor content to an empty paragraph, cursor is positioned after <br> and input ends up on second line
Reported by: | Arne | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Firefox | Cc: |
Description
Go to demo page:
- Execute the following code (in Firebug). (If it's not reproduced on the first try, try a few more times)
CKEDITOR.instances.editor1.setData('<p><br></p>'); CKEDITOR.instances.editor1.focus();
- Now input some text.
- Observe that text ends up on the second line (after the br-tag).
This is caused by the onSelectionChangeFixBody function in the wysiwyg plugin, where Range::moveToElementEditEnd is called for the empty paragraph. Cursor then ends up after the br element.
Expected behavior : When paragraph is empty (contains br-tag), Range::moveToElementEditStart should be called.
Tested in Firefox 3.6.13, WinXP, CK version 3.4.2
Change History (2)
comment:1 Changed 14 years ago by
Keywords: | Firefox added |
---|---|
Status: | new → pending |
comment:2 Changed 11 years ago by
Resolution: | → expired |
---|---|
Status: | pending → closed |
WFM on trunk.