Ticket #1331 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 months ago

Enter key in Editor2 should have the same behavior in different browsers

Reported by: guest Owned by: liucougar
Priority: normal Milestone: 0.9
Component: Editor Version: 0.3
Severity: normal Keywords:
Cc:

Description

Pressing the Enter key in the Editor2 widget sometimes starts a new paragraph (P), sometimes inserts a line break (BR).

Liu Cougar noted in an email that currently he has no efficient way to correct this issue.

However, we know it's possible to have the Enter key always insert a new paragraph, since Jot Spot does it... somehow.

So this enhancement request is here as a plea for the hackers out there to figure how to do this! :-)

In my testing, this is what I saw:

Internet Explorer 6.0 in Windows inserts a new paragraph.

Fire Fox 1.5.0.6 running in Windows inserts a line break.

Fire Fox 1.5.0.4 running in Linux inserts a new paragraph.

Fire Fox 1.0.7 running in Linux inserts a line break.

Many thanks,

Andrew Wilcox

Change History

Changed 2 years ago by dylan

  • owner changed from anonymous to liucougar
  • version changed from 0.2 to 0.3
  • component changed from General to Widgets
  • milestone set to 0.5

Changed 2 years ago by liucougar

I don't think dojo wiki always inserts a new paragraph when you press enter, at least not in FF 1.5 under windows

Changed 2 years ago by dylan

  • component changed from Widgets to Editor

Changed 21 months ago by liucougar

  • status changed from new to closed
  • resolution set to fixed

(In [7494]) added w3c range compatible layer for IE fixes #1331 improved placeCursorAtStart/End for FF

Changed 18 months ago by guest

In IE you can force the insertion of BRs on VK_ENTER by wrapping everything in a DIV. When IE sees that the caret is inside a DIV, it will insert BRs.

Regards, Em Te

Changed 2 months ago by bill

(In [15199]) Better comments for EnterKeyHandling? plugin, refs #1331, #2859 !strict

Changed 2 months ago by bill

(In [15228]) Revise comments for EnterKeyHandling? plugin as per input from Cougar, refs #1331 !strict

Note: See TracTickets for help on using tickets.