After saving the block, html was changed to something like:

<form action="http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2" method="post" target="tfl" style="margin-bottom:0;padding-bottom:0;">
    <a title="Advanced options" target="tfl" href="h _fcksavedurl=" journeyplanner.tfl.gov.uk=""><img src="h _fcksavedurl=" www.tfl.gov.uk="" tfl="" gettingaround="" journeyplanner="" banners="" images="" width="165" height="42" alt="Journey Planner" style="border:0;" /></a>

Comments

kenorb’s picture

Before it was:

<form action=\"http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2\" method=\"post\" target=\"tfl\" style=\"margin-bottom:0;padding-bottom:0;\">\r\n    <a title=\"Advanced options\" target=\"tfl\" href=\"http://journeyplanner.tfl.gov.uk/\"><img src=\"http://www.tfl.gov.uk/tfl/gettingaround/journeyplanner/banners/images/jp-brand.gif\" width=\"165\" height=\"42\" alt=\"Journey Planner\" style=\"border:0;\" /></a>

(ignore the backslashes)
Why there is '_fcksavedurl' string instead of proper url?
Why this happen?

kenorb’s picture

Testing again.
Pasting this code into block:

<div style="display:block; width:180px; height:235px;font-family:Verdana, Arial, Helvetica, sans-serif;background:url(http://www.tfl.gov.uk/tfl/gettingaround/journeyplanner/banners/images/jp-panel.gif) #fff no-repeat; font-size:90%;"><div style="display:block;padding:35px 15px 15px 15px;"><strong style="color: rgb(36, 66, 102); text-align: center; display: block;">Journey Planner</strong><form action="http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2" id="jpForm" method="post" target="tfl" style="margin:5px 0 0 0 !important;padding:0 !important;"><input type="hidden" name="language" value="en" /> <!-- in language = english --><input type="hidden" name="execInst" value="" /> <input type="hidden" name="sessionID" value="0" /> <!-- to start a new session on JP the sessionID has to be 0 --> <input type="hidden" name="ptOptionsActive" value="-1" /> <!-- all pt options are active -->  <input type="hidden" name="place_origin" value="London" /> <!-- London is a hidden parameter for the origin location -->  <input type="hidden" name="place_destination" value="London" /><div><input type="text"  name="name_origin" style="width:155px !important;" value="From"/></div><div><select style="width:155px !important;" name="type_origin"><option value="stop">Station or stop</option><option value="locator">Postcode</option><option value="address">Address</option><option value="poi">Place of interest</option></select><input type="text" name="name_destination" style="width:155px !important;" value="Enter destination"/></div><div><select style="width:155px !important;" name="type_destination"><option selected="selected" value="stop">Station or stop</option><option  value="locator">Postcode</option><option value="address" >Address</option><option  value="poi">Place of interest</option></select></div><input type="submit" title="Leave now" value="Leave now"   style="width:155px !important;"/><div style="margin-top:5px;text-align:center;"><a style="text-decoration:none; color:#113B92;font-size:90%;background:#fffbfc;white-space:nowrap;" target="tfl" href="http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2?language=en&amp;ptOptionsActive=1"  onclick="javascript:document.getElementById('jpForm').ptOptionsActive.value='1';document.getElementById('jpForm').execInst.value='readOnly';document.getElementById('jpForm').submit(); return false">Advanced options</a></div></form></div></div>

Saving.
When I'm editing again, there is in source something different:

<div style="display:block; width:180px; height:235px;font-family:Verdana, Arial, Helvetica, sans-serif;background:url(http://www.tfl.gov.uk/tfl/gettingaround/journeyplanner/banners/images/jp-panel.gif) #fff no-repeat; font-size:90%;">
<div style="display:block;padding:35px 15px 15px 15px;"><strong style="color: rgb(36, 66, 102); text-align: center; display: block;">Journey Planner</strong>
<form action="http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2" id="jpForm" method="post" target="tfl" style="margin:5px 0 0 0 !important;padding:0 !important;">
    <input type="hidden" name="language" value="en" /> <!-- in language = english --><input type="hidden" name="execInst" value="" /> <input type="hidden" name="sessionID" value="0" /> <!-- to start a new session on JP the sessionID has to be 0 --> <input type="hidden" name="ptOptionsActive" value="-1" /> <!-- all pt options are active -->  <input type="hidden" name="place_origin" value="London" /> <!-- London is a hidden parameter for the origin location -->  <input type="hidden" name="place_destination" value="London" />
    <div><input type="text" name="name_origin" style="width:155px !important;" value="From" /></div>
    <div><select style="width:155px !important;" name="type_origin">
    <option value="stop">Station or stop</option>
    <option value="locator">Postcode</option>
    <option value="address">Address</option>
    <option value="poi">Place of interest</option>
    </select><input type="text" name="name_destination" style="width:155px !important;" value="Enter destination" /></div>
    <div><select style="width:155px !important;" name="type_destination">
    <option selected="selected" value="stop">Station or stop</option>
    <option value="locator">Postcode</option>
    <option value="address">Address</option>
    <option value="poi">Place of interest</option>
    </select></div>
    <input type="submit" title="Leave now" value="Leave now" style="width:155px !important;" />
    <div style="margin-top:5px;text-align:center;"><a style="text-decoration:none; color:#113B92;font-size:90%;background:#fffbfc;white-space:nowrap;" target="tfl" href="h _fcksavedurl=" journeyplanner.tfl.gov.uk="" user="" onclick="javascript:document.getElementById('jpForm').ptOptionsActive.value='1';document.getElementById('jpForm').execInst.value='readOnly';document.getElementById('jpForm').submit(); return false">Advanced options</a></div>
</form>
</div>
</div>

Before:

href="http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2?language=en&amp;ptOptionsActive=1"  onclick

After:

href="h _fcksavedurl=" journeyplanner.tfl.gov.uk="" user="" onclick

WTF?

wwalc’s picture

Status: Active » Postponed (maintainer needs more info)

Hmm I cannot reproduce this.

Do the following:
- reduce the example to absolute minimum (is simply the <a> tag at the bottom of the sample code enough?)
- try reproducing this issue again, to reproduce it probably you don't have to save it and edit again, it should be enough to switch to plain text area and back with the toggle link at the bottom of RTE.
- clear browser cache and try reproducing it again

If you are able to reproduce it, let me know the following:
- settings from fckeditor.config.js (which plugins are enabled?)
- OS and the exact version of your browser

kenorb’s picture

Status: Postponed (maintainer needs more info) » Active

I can reproduce it on Chrome 2.0.162.0
I think it's related to this report:
http://www.fckeditor.net/forums/viewtopic.php?f=5&t=12946

kenorb’s picture

Title: FCKEditor corrupt html of my block » FCKEditor breaking html links on Chrome 2beta
wwalc’s picture

I have installed Google Chrome 2.0.162.0 on Win XP/SP3 and I cannot reproduce it.
Anyway, could you let me know whether you're able to reproduce it on the demo site: http://www.fckeditor.net/demo?

Switch to the souce mode, paste this code:

<p><img alt="" src="http://www.fckeditor.net/fckeditor/2.6.4/editor/images/smiley/msn/shades_smile.gif" /><a href="http://example.com">text</a></p>

switch to wysiwyg mode and back and let me know the result.

In other words, are you able to reproduce this bug in Drupal only, or does this bug exist also on the demo site (plain FCKeditor installation)?

kenorb’s picture

Yes, I was able to reproduce it.
I found more specified code to reproduce it:

This one is breaking:

<p>ł</p>
<p><a href="http://wiadomosci.onet.pl/1530483,2678,kioskart.html">http://wiadomosci.onet.pl/1530483,2678,kioskart.html</a></p>

This one not:

<p>l</p>
<p><a href="http://wiadomosci.onet.pl/1530483,2678,kioskart.html">http://wiadomosci.onet.pl/1530483,2678,kioskart.html</a></p>

1. Paste the first code in Source mode.
2. Switch off Source mode (Normal mode)
3. Enable Source mode again.
You should see something like:

<p><a h="" href=" wiadomosci.onet.pl=">http://wiadomosci.onet.pl/1530483,2678,kioskart.html</a></p>

Or sometimes like:

<p><a href="h _fcksavedurl=" wiadomosci.onet.pl="">http://wiadomosci.onet.pl/1530483,2678,kioskart.html</a></p>

Instead of normal link.

It's probably some bug related to international characters.
Tested with ł, ó, ą. Most of them breaking links.

kenorb’s picture

Title: FCKEditor breaking html links on Chrome 2beta » FCKEditor breaking html links on Chrome 2beta with international characters
wwalc’s picture

Status: Active » Closed (duplicate)

It is a bug in the FCKeditor (or actually in Google Chrome), so closing this ticket. This issue tracker is only used to trace bugs in the FCKeditor module.
I have reported this problem in the right place: http://dev.fckeditor.net/ticket/2917 - anyone interested in the progress on this bug should look under that link.

Thanks for reporting this issue.

kenorb’s picture

kenorb’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.