Opened 12 years ago

Closed 12 years ago

#971 closed Bug (duplicate)

"scr" and "alt" link tags are always reversed

Reported by: Lloyd Standish Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.4.3
Keywords: Cc:

Description

In an link (<a>) the "alt" and "src" attributes are always switched in order at the time FCKeditor parses the html. Example:

<a href="http://www.rimuhosting.com"><img width="120" height="60" border="0" align="right" alt="Rimuhosting Virtual Private Servers" src="images/rh_vpspowered_120_60.jpg" /></a>

This link when parsed by FCKeditor will have the "alt" and "src" attributes reversed. This means that the link output by FCKeditor is always different from the original link.

This is a problem for programs that need to determine when text has changed by using a hash, such as md5. For example, my FCKeditor-based web editor allows viewing and editing SSI-included files (#inlcude virtual= 'xxx'), and uses md5 hash to determine when such included files have been changed and need to be saved to disk. Due to the attribute-switching, the "included" html block, although unchanged by the user, will always fail the md5 test and an unnecessary save to disk is done.

Change History (2)

comment:1 Changed 12 years ago by Lloyd Standish

I am using fullpage mode. Javascript API preloads the editor as follows:

var oFCKeditor = new FCKeditor('edited'); oFCKeditor.BasePath = "/FCKeditor/"; oFCKeditor.ConfigCustomConfigurationsPath? = "/mywebeditconfig.js"; <snip> oFCKeditor.ConfigFullPage? = true ; oFCKeditor.Value = '<html><head><snip></html>'; oFCKeditor.Create();

comment:2 Changed 12 years ago by Alfonso Martínez de Lizarrondo

Resolution: duplicate
Status: newclosed

dup of #249

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy