Opened 15 years ago

Closed 14 years ago

#3640 closed defect (invalid)

Editor2 mangles src and href attribs inconsistently — at Version 5

Reported by: guest Owned by: liucougar
Priority: high Milestone: 1.3
Component: Editor Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by liucougar)

My project requires the use of custom variables surrounded by curly brackets. These are sometimes placed inside src and href attributes of IMG and A tags. They would be produced in the dojo Editor2 html view as something like this:

<img src="{SITEURL}/images/myphoto.jpg" alt="..."/>
<a href="{SITEURL}/products/apples" alt="apples">Apples</a>

Its fine that these brackets get converted to url encoded strings (%7D and %7B) when saved to the database, however, the problem occurs when pulling them back out.

In Firefox all is well the content would be displayed as the following:

<img src="%7BSITEURL%7D/images/myphoto.jpg" alt="..."/>
<a href="%7BSITEURL%7D/products/apples" alt="apples">Apples</a>

However, in IE6 & IE7 the value gets prepended with a hard url under the covers.

<img src="" alt="..."/>
<a href="" alt="apples">Apples</a>

this wreaks havoc on end users that 1) will be making simple content changes without ever seeing the html view, 2) know nothing of the details of whats going on under the covers, and 3) insist on using their inferior browser of choice to make edits. The only solution ive found is to disable dojo editor for IE until this can be resolved.

Change History (5)

comment:1 Changed 15 years ago by bill

Milestone: 1.0

comment:2 Changed 15 years ago by liucougar

could you provide a test case?

comment:3 Changed 14 years ago by bill

Milestone: 1.02.0

comment:4 Changed 14 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:5 Changed 14 years ago by liucougar

Description: modified (diff)
Resolution: invalid
Status: newclosed

no further info from reporter, closing

Note: See TracTickets for help on using tickets.