Opened 12 years ago

Last modified 12 years ago

#9427 closed defect

insertHorizontalLine is broken on IE. — at Version 1

Reported by: Jared Jurkiewicz Owned by: liucougar
Priority: high Milestone: 1.4
Component: Editor Version: 1.3.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Adam Peller)

This comes from a co-worker: Dojo RTE supports right align layout. But in IE, if add a horizontal line into the paragraph, the right align is broken.

  1. Enter some text into the RTE, and click align right.
  2. Place the cursor in front of the text, and insert a horizontal line.
  3. Check the source code, notice that the <hr> tag is inserted into the <p> tag.
  4. The browser will report js error when use the html code to render.
  5. The posted content will lost right alignment.

I have a simple fix for this, to special case the inserthorizontalrule action in RichText?, similar to how inserthtml is over-ridden.

The co-worker verified this does fix the problem and my testing of it shows it seems to fix it pretty well. Patch forthcoming.

Change History (1)

comment:1 Changed 12 years ago by Adam Peller

Description: modified (diff)

I suggest we try to combine this logic with the inserthtml section.

Note: See TracTickets for help on using tickets.