Ticket #41 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

FF issues

Reported by: jusuff Owned by: jf.hovinne
Priority: minor Milestone: 0.5
Component: editor Version: trunk
Keywords: Cc:

Description

  1. 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.

  1. 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

WYMeditor_br_at_p.png Download (38.4 KB) - added by jusuff 5 years ago.
Inserted "br" tag at the end of paragraph
WYMeditor_list_and_cursor.png Download (33.9 KB) - added by jusuff 5 years ago.
Lists and strange cursor behaviour

Change History

Changed 5 years ago by jusuff

Inserted "br" tag at the end of paragraph

Changed 5 years ago by jusuff

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.

comment:2 Changed 5 years ago by jf.hovinne

  • Priority changed from major to minor
  • Type changed from defect to enhancement
  • Milestone changed from 0.3 to 0.3.1

comment:3 Changed 5 years ago by jf.hovinne

  • Milestone changed from 0.3.1 to 0.5

1) fixed by r381.

comment:4 Changed 4 years ago by jf.hovinne

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.