Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#12830 closed defect (invalid)

Enter key appears to double space in RichTextEditor on ie8

Reported by: hengly Owned by: Jared Jurkiewicz
Priority: high Milestone: tbd
Component: Editor Version: 1.6.0
Keywords: editor, double space, ie8 Cc:
Blocked By: Blocking:


1.Running the test codes on ie8 2.Clicking the enter key


The enter key should be a single line in the editor


The enter key appears to double spacing.

Attachments (1)

test_Editor.html (1.4 KB) - added by hengly 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by hengly

Attachment: test_Editor.html added

comment:1 Changed 11 years ago by bill

Component: GeneralEditor
Owner: set to Jared Jurkiewicz

Does this still happen in dojo 1.6? And, is the behavior inconsistent across browsers?

The EnterKeyHandling plugin, loaded by the editor by default, is supposed to equalize how enter key is handled across browsers. The default setting is "BR" mode which means that you shouldn't get the "double space" behavior that you are referring to (which probably actually means that ENTER key is starting a new paragraph).

comment:2 Changed 11 years ago by Jared Jurkiewicz

Resolution: invalid
Status: newclosed

You are over-riding the base plugins for editor, which disables the enter key handling plugin. The enter key handling plugin is what normalizes spacing. You need to add it back into your plugin list.

Make your plugin list:

plugins="['bold','italic','|','createLink','foreColor','hiliteColor',{name:'dijit._editor.plugins.FontChoice', command:'fontName', generic:true},'fontSize','insertImage','insertHorizontalRule', "dijit._editor.plugins.EnterKeyHandling?"]"

And you should get the single spacing you want.

comment:3 Changed 11 years ago by hengly

thank you very much!I will try for that!

Note: See TracTickets for help on using tickets.