Opened 8 years ago
Closed 8 years ago
#16163 closed defect (invalid)
(IE9) Editor - <p> is inserted each line after removed Numbered list or Bullet list format.
Reported by: | Chris Gao | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Editor | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Steps:
- Focus in RichText? Editor.
- Input some lines into message body.
- Select all the text.
- Click on Numbered list or Bullet list button.
- Remove Numbered list or Bullet list format.
- Check the text lines in message body.
Expected: The lines text should be recovered to original status.
Got: There are p tags inserted each line.
Only happens on IE9, works fine on Chrome
Change History (6)
comment:1 follow-up: 2 Changed 8 years ago by
comment:2 Changed 8 years ago by
Replying to gpresser:
currently my dijit.Editor always creates <p>s instead of <br/> - on each 'return'
can be reproduced with IE8 at
at the 'no plugins, initially empty' editor
comment:3 Changed 8 years ago by
YOu need to include the EntterKeyHandling? plugin:
dijit/_editor/plugins/EnterKeyHandling,
Otherwise you just get the browser default behavior, which for IE is <P> tags.
comment:4 Changed 8 years ago by
EnterKeyHandling is included by default in the Editor, unless you override the plugins parameter, which some of the editors in that test file do. Which editor were you looking at? Your ticket description is ambiguous where it says:
- Focus in RichText? Editor.
comment:5 Changed 8 years ago by
thanks jaredj/bill - seems that was the trick. firefox/IE behave nearly the same now.
but there are still problems when adding/removing (un)ordered lists (in IE).
comment:6 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
OK good. Closing this ticket then. If there isn't a ticket about the lists already, you can open one, if you have instruction on how to reproduce the problem.
currently my dijit.Editor always creates <p>s instead of <br/> - on each 'return'