Ticket #971 (closed Bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: Lloyd 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

Changed 3 years ago by Lloyd

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();

Changed 3 years ago by alfonsoml

  • status changed from new to closed
  • resolution set to duplicate

dup of #249

Note: See TracTickets for help on using tickets.