Opened 7 years ago

Closed 7 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:

  1. Focus in RichText? Editor.
  2. Input some lines into message body.
  3. Select all the text.
  4. Click on Numbered list or Bullet list button.
  5. Remove Numbered list or Bullet list format.
  6. 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 Changed 7 years ago by gerhard presser

currently my dijit.Editor always creates <p>s instead of <br/> - on each 'return'

comment:2 in reply to:  1 Changed 7 years ago by gerhard presser

Replying to gpresser:

currently my dijit.Editor always creates <p>s instead of <br/> - on each 'return'

can be reproduced with IE8 at

http://download.dojotoolkit.org/release-1.8.1/dojo-release-1.8.1/dijit/tests/editor/test_Editor.html

at the 'no plugins, initially empty' editor

comment:3 Changed 7 years ago by Jared Jurkiewicz

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 7 years ago by bill

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:

  1. Focus in RichText? Editor.

comment:5 Changed 7 years ago by gerhard presser

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 7 years ago by bill

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.