Opened 10 years ago

Closed 9 years ago

#403 closed Bug (fixed)

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

comment:1 Changed 10 years 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

comment:2 Changed 10 years ago by fredck

  • Cc rootkit@… added
  • Reporter changed from fredck to cheery@…

comment:3 Changed 10 years ago by fredck

  • Keywords Confirmed IE added
  • Milestone set to FCKeditor 2.5
  • Version set to FCKeditor 2.4.2

comment:4 Changed 10 years ago by fredck

#358 is a DUP of this one.

comment:5 Changed 9 years ago by martinkou

  • Owner set to martinkou
  • Status changed from new to assigned

comment:6 Changed 9 years ago by martinkou

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed with [721].

Click here for more info about our SVN system.

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