﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1485	IE: shift+enter brakes formatted text	Georg Grabler		"Hello,

I lately installed MediaWiki+FCKeditor from the SVN trunk (rev 1055). Once again, as always, I'm experiencing problems with linebreaks and pre tags. The topic is getting annoying, but i tried quite every patch available here, and either they were already applied or they simply don't work as intended.

I'll go trough usecases, for IE 6.0 and Gecko (FireFox). I'm using FireFox 2.0.0.8 on Linux (Gecko 20071020).


== Usecase 1 - Add normal text and apply Formatted to it ==

I write text normally, using SHIFT+Enter for the linebreak. I select the whole text i've written and apply the format ""Formatted"".
It displays the text nicely, as expected by me.
Now, by pressing on ""Wikitext"", the following happens:

''' Internet Explorer: '''
Internet explorer completely behaves as intended. Switching around does not screw up anything.

''' Firefox '''
Firefox behaves differently. Switching the first time to wikitext, the following text is displayed:
{{{
<pre>test<br>testt<br>testtest</pre>
}}}
Switching back, this linebreaks show up in the wikitext in a format block
Next time i switch to the wiki text, the following is displayed:

{{{
<pre>test&lt;br&gt;testt&lt;br&gt;testtest</pre>
}}}
Which was not intended by me. No need to mention that the linebreaks were lost within the pre block by the first time switching.

== Usecase 2: Editing already formatted text ==
Well, i created a page, formatted it, and did NOT switch to the wikitext. I saved the page, and went on ""edit"", or use the ""preview"" function.
Now, i add up some line, the following happens

''' Internet Explorer '''
The internet explorer on the first shift + enter won't let me add any line. Instead of this, IE adds some pre tags (shift+enter?)
{{{
<pre><pre>test
testtest
testtesttest</pre><pre></pre></pre>
}}}
By switching back, the view is screwed up (of course).

If i press new line, and start writing (note: the curser did NOT switch to the next line yet), it works properly.

If i add something pressing two times SHIFT + Enter, the pre tags get screwed up again:
{{{
<pre><pre>test
testtest
test
testt</pre><pre></pre>

test</pre>
}}}

''' Firefox '''
Doing the same with firefox, firefox again screws up the newlines with br (of course), as described in usecase 1. For the field added (the newline), firefox does the following:
{{{
<pre>test<br>testt<br>testtest test</pre>
}}}
which means it does not convert the newline into a break anymore, but a blank instead of that. It does not screw up the pre tags though, as IE does.


I hope you can reproduce this problems.

Yours,
Georg"	Bug	closed	Normal		Project : MediaWiki+FCKeditor	SVN (FCKeditor) - Retired	invalid	Pending	
