Ticket #403 (closed Bug: fixed)

Opened 19 months ago

Last modified 15 months ago

Switching from HTML to Source adds \n in STYLE tag

Reported by: cheery@… Owned by: martinkou
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: UI : Source View Version: FCKeditor 2.4.2
Keywords: SF Confirmed IE Cc: rootkit@…

Description

Initial header of the page was:

<head>
<title>FCKeditor - What's New?</title>
<style type="text/css">
body { font-family: Arial, Verdana, Sans-Serif; }

Second switching from HTML view to the Source view adds \n:

<head>
<title>FCKeditor - What's New?</title>
<style type="text/css">

body { font-family: Arial, Verdana, Sans-Serif; }

Next one will add one more symbol of the new line and so on.


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1302499&group_id=75348&atid=543653

Change History

Changed 19 months ago by fredck

A quickfix for this problem (it only seem to occur in IE!):

\editor\js\fckeditorcode_ie.js

OLD:

style:function(A,B){if (!A.attributes.getNamedItem('type'))
FCKXHtml._AppendAttribute(A,'type','text/css');A.appendChild(FCKXHtml.XML.cr
eateTextNode(FCKXHtml._AppendSpecialItem(B.innerHTML.)));

NEW:

style:function(A,B){if (!A.attributes.getNamedItem('type'))
FCKXHtml._AppendAttribute(A,'type','text/css');A.appendChild(FCKXHtml.XML.cr
eateTextNode(FCKXHtml._AppendSpecialItem(B.innerHTML.Trim()/* added
Trim()
*/)));

Moved from SF. Original poster: rootkit

Changed 19 months ago by fredck

  • cc rootkit@… added
  • reporter changed from fredck to cheery@…

Changed 19 months ago by fredck

  • keywords Confirmed IE added
  • version set to FCKeditor 2.4.2
  • milestone set to FCKeditor 2.5

Changed 19 months ago by fredck

#358 is a DUP of this one.

Changed 15 months ago by martinkou

  • owner set to martinkou
  • status changed from new to assigned

Changed 15 months ago by martinkou

  • status changed from assigned to closed
  • resolution set to fixed

Fixed with [721].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.