Opened 10 years ago

Closed 10 years ago

#403 closed Bug (fixed)

Switching from HTML to Source adds \n in STYLE tag

Reported by: cheery@… Owned by: Martin Kou
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 Frederico Caldeira Knabben

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 Frederico Caldeira Knabben

Cc: rootkit@… added
Reporter: changed from Frederico Caldeira Knabben to cheery@…

comment:3 Changed 10 years ago by Frederico Caldeira Knabben

Keywords: Confirmed IE added
Milestone: FCKeditor 2.5
Version: FCKeditor 2.4.2

comment:4 Changed 10 years ago by Frederico Caldeira Knabben

#358 is a DUP of this one.

comment:5 Changed 10 years ago by Martin Kou

Owner: set to Martin Kou
Status: newassigned

comment:6 Changed 10 years ago by Martin Kou

Resolution: fixed
Status: assignedclosed

Fixed with [721].

Click here for more info about our SVN system.

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