#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: |
Description
1.Running the test codes on ie8 2.Clicking the enter key
Expected:
The enter key should be a single line in the editor
Actual:
The enter key appears to double spacing.
Attachments (1)
Change History (4)
Changed 9 years ago by
Attachment: | test_Editor.html added |
---|
comment:1 Changed 9 years ago by
Component: | General → Editor |
---|---|
Owner: | set to Jared Jurkiewicz |
comment:2 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
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).