Opened 16 years ago

Closed 15 years ago

Last modified 13 years ago

#1331 closed enhancement (fixed)

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

Reported by: guest Owned by: liucougar
Priority: high Milestone: 0.9
Component: Editor Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


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 running in Windows inserts a line break.

Fire Fox 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 (8)

comment:1 Changed 16 years ago by dylan

Component: GeneralWidgets
Milestone: 0.5
Owner: changed from anonymous to liucougar
Version: 0.20.3

comment:2 Changed 16 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

comment:3 Changed 16 years ago by dylan

Component: WidgetsEditor

comment:4 Changed 15 years ago by liucougar

Resolution: fixed
Status: newclosed

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

comment:5 Changed 15 years 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

comment:6 Changed 14 years ago by bill

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

comment:7 Changed 14 years ago by bill

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

comment:8 Changed 13 years ago by bill

(In [18386]) Attempt to clarify EnterKeyHandling? API documentation, refs #1331, #2859 !strict.

Note: See TracTickets for help on using tickets.