Ticket #3281 (new Bug)

Opened 12 months ago

Last modified 12 months ago

"Special Tag Properties" interface deletes tabs and blank spaces

Reported by: blitzschlagman Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version: FCKeditor 2.5.1
Keywords: Confirmed Review? Cc: ikoch@…

Description

The FCKeditor/MediaWiki "Special Tag Properties" interface for adding and editing "special tags" deletes tabs and blank spaces at the beginning of the lines, i.e. when adding and editing xml-code (which contains blank spaces or tabs at the beginning of the lines).

This happens only in IE (7, 8) when a page is re-edited. No problems with Firefox.

"Extension:SyntaxHighlight GeSHi" for proper source code formatting installed.

Before:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<verzeichnis>
     <titel>Wikipedia Städteverzeichnis</titel>
     <eintrag>
          <stichwort>Genf</stichwort>
          <eintragstext>Genf ist der Sitz von ...</eintragstext>
     </eintrag>
     <eintrag>
          <stichwort>Köln</stichwort>
          <eintragstext>Köln ist eine Stadt, die ...</eintragstext>
     </eintrag>
</verzeichnis>

After:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<verzeichnis>
 <titel>Wikipedia Städteverzeichnis</titel>
 <eintrag>
 <stichwort>Genf</stichwort>
 <eintragstext>Genf ist der Sitz von ...</eintragstext>
 </eintrag>
 <eintrag>
 <stichwort>Köln</stichwort>
 <eintragstext>Köln ist eine Stadt, die ...</eintragstext>
 </eintrag>
</verzeichnis>

Attachments

3281.patch Download (18.0 KB) - added by wwalc 12 months ago.

Change History

Changed 12 months ago by blitzschlagman

  • cc ikoch@… added

Changed 12 months ago by arczi

  • keywords Confirmed added
  • priority changed from High to Normal

Changed 12 months ago by wwalc

Changed 12 months ago by wwalc

  • keywords Review? added

Could you check this patch and let me know whether everything works as expected?

The SVN instructions are available here:  http://mediawiki.fckeditor.net/index.php/SVN_Instructions (the easiest solution is to use TortoiseSVN if you're working on Windows)

Changed 12 months ago by blitzschlagman

Unfortunately the patch could not be installed properly (got an error message).

We modified the code of the corresponding files by hand and now everything works as expected (tested with version 2.6.4 Build 21629).

We have noticed only one minor bug: With every preview of the Wiki-page a <br> is generated after the </source> tag.

Btw.: Will this patch be integraded in the extension-repository?

Note: See TracTickets for help on using tickets.