Opened 19 years ago
Closed 18 years ago
#403 closed Bug (fixed)
Switching from HTML to Source adds \n in STYLE tag
| Reported by: | 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 19 years ago by
comment:2 Changed 19 years ago by
| Cc: | rootkit@… added |
|---|---|
| Reporter: | changed from Frederico Caldeira Knabben to cheery@… |
comment:3 Changed 19 years ago by
| Keywords: | Confirmed IE added |
|---|---|
| Milestone: | → FCKeditor 2.5 |
| Version: | → FCKeditor 2.4.2 |
comment:5 Changed 18 years ago by
| Owner: | set to Martin Kou |
|---|---|
| Status: | new → assigned |
comment:6 Changed 18 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed with [721].
Click here for more info about our SVN system.

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