Ticket #41 (closed enhancement: fixed)
FF issues
Reported by: | jusuff | Owned by: | jf.hovinne |
---|---|---|---|
Priority: | minor | Milestone: | 0.5 |
Component: | editor | Version: | trunk |
Keywords: | Cc: |
Description
- When I click "enter" to create new paragraph at the end of it tag "br" is inserted. When I click "enter" once again this tag will move to the end of new paragraph.
I'm attaching screenshot where you can see what I mean.
- Put the cursor at the end of last list item in list (ul or ol). Click "enter" once - new list item is created, click once more... and there should be new paragraph created. In IE this works good. In FF there is no new paragraph but the cursor is pointed outside the list block. New paragraph appear not till when you enter some text. I'm attaching screenshot where I've marked the cursor position.
Both issues noticed on Firefox 2.0.0.3 on Windows. On IE7 this works fine.
Attachments
Change History
Changed 5 years ago by jusuff
- attachment WYMeditor_br_at_p.png added
Changed 5 years ago by jusuff
- attachment WYMeditor_list_and_cursor.png added
Lists and strange cursor behaviour
comment:1 Changed 5 years ago by jf.hovinne
- Status changed from new to assigned
About 1): the BR is used by FF designMode implementation, and is required for it to work.
I guess xhtml() should remove last childnode if it is a BR.
About 2): FF designMode implementation doesn't create paragraphs by default.
To circumvent this, the only simple fix I've found is to call wym._exec(sWYM_FORMAT_BLOCK, sWYM_P) at keyup, but not while pressing the enter key, otherwise editing becomes unusable.
Note: See
TracTickets for help on using
tickets.
Inserted "br" tag at the end of paragraph