Ticket #2044 (closed Bug: fixed)

Opened 4 months ago

Last modified 4 months ago

I lose titles on my tables with the MediaWiki plugin

Reported by: svanpo Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version: SVN
Keywords: Confirmed HasPatch Cc:

Description

When I switch to the Wikitext version, I lose the titles on my tables.

I use a nightly build (2008/03/05).

I realized a small patch for the /plugins/mediawiki/fckplugin.js file. You must change the line 317 "stringBuilder.push( '|' ) ;" with the text bellow (in the "table" switch/case of the _AppendNode function).

if (htmlNode.rows[r].cells[c].tagName.toLowerCase()=="th") {

stringBuilder.push( '!' ) ;

} else {

stringBuilder.push( '|' ) ;

}

Best regards.

Change History

follow-up: ↓ 2   Changed 4 months ago by w.olchawa

  • keywords Pending added

Could you please provide more information about the bug possibly containing a step by step instruction to reproduce the bug?

Thanks in advance

in reply to: ↑ 1   Changed 4 months ago by svanpo

Replying to w.olchawa:

Could you please provide more information about the bug possibly containing a step by step instruction to reproduce the bug? Thanks in advance

It's very simple. For example, I create a table with a title (with ! at the beginning) in the wikitext mode. When I switch to the wysiwyg view, FCKEditor display the title with the good style (default settings, centered bold text). I switch again to the wikitext mode and my ! becomed |.

If I switch again to the wysiwyg view, I can see my titles becomed normal cells.

Below, a small table example working now with my patch:

{| width="100%" cellspacing="1" cellpadding="1" border="1" align="center" class="info" |- ! Rang ! Nom ! Description |- | 1 | REPOS-PATH | Chemin complet vers le dépôt/référentiel Subversion sur le serveur. |- | 2 | USER | Identifiant de l'utilisateur qui demande le commit de ressources dans le dépôt. Si l'utilisateur n'est pas authentifié, ce paramètre aura pour valeur une chaine vide. |}

  Changed 4 months ago by w.olchawa

  • keywords Confirmed HasPatch added; Pending removed
  • version set to SVN

Confirmed using IE and FF2 with MW 1.11.2 and SVN of FCKeditor.

  Changed 4 months ago by wwalc

Corrected example:

{| width="100%" cellspacing="1" cellpadding="1" border="1" align="center" class="info"
 |-
 ! Rang
 ! Nom
 ! Description
 |-
 | 1
 | REPOS-PATH
 | Chemin complet vers le dépôt/référentiel Subversion sur le serveur.
 |-
 | 2
 | USER
 | Identifiant de l'utilisateur qui demande le commit de ressources dans le
 dépôt. Si l'utilisateur n'est pas authentifié, ce paramètre aura pour
 valeur une chaine vide.
 |}

  Changed 4 months ago by wwalc

  • status changed from new to closed
  • resolution set to fixed

Fixed with [1832].

Thanks!

Note: See TracTickets for help on using tickets.