Opened 12 years ago

Closed 11 years ago

#2044 closed Bug (fixed)

I lose titles on my tables with the MediaWiki plugin

Reported by: svanpo Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version: SVN (FCKeditor) - Retired
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 (5)

comment:1 Changed 11 years ago by Wojciech 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

comment:2 in reply to:  1 Changed 11 years 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. |}

comment:3 Changed 11 years ago by Wojciech Olchawa

Keywords: Confirmed HasPatch added; Pending removed
Version: SVN

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

comment:4 Changed 11 years ago by Wiktor Walc

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.
 |}

comment:5 Changed 11 years ago by Wiktor Walc

Resolution: fixed
Status: newclosed

Fixed with [1832].

Thanks!

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy