Ticket #2147 (closed Bug: duplicate)

Opened 7 years ago

Last modified 7 years ago

Template information on tables dropped when switching from Wikitext to WYSIWYG

Reported by: jfierro Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version: SVN (FCKeditor) - Retired
Keywords: Confirmed Cc:

Description

Summary: FCKeditor is behaving incorrectly when working with templates, it'll drop the template information put on tables.

Tested against latest version, and with http://mediawiki.fckeditor.net/nightly/svn/mediawiki_fckeditor_ext_N.tar.gz

Similar to Ticket #2069, still not working when used as described below:

Steps:

Go edit any page, go to wiki text, type:

{|{{Prettytable}}| {{Hl2}} | Cell 1 | {{Hl2}} | Cell 2 |}

Click on Wikitext button again, no blue colors right? get back to Wikitext, BAM, templates lost.

Contents of prettytable template:

border="2" width="100%" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"

hl2 template:

bgcolor="#A7C1F2"

Software information:

MediaWiki 1.12.0 PHP 5.2.5 Linux Box, Firefox Browser 2.0.0.11

Also tried with the installation on mediawiki.fckeditor.net, same thing

Screenshots:

Write wikitext with template information: http://img90.imageshack.us/img90/9539/wegottemplatessf8.png

By looking at the code for the template, it is abvious that the table should have some color: http://img90.imageshack.us/img90/7632/shouldhavecoloryp7.png

Go back to the wikitext, where are our template calls? http://img90.imageshack.us/img90/9396/templateinfogonekp7.png

What if we put the template contents directly? http://img90.imageshack.us/img90/350/whatifwepf0.png

Works correctly: http://img91.imageshack.us/img91/8629/workedthistimecp0.png

Sample Data:

None

Text case file:

None

Change History

comment:1 Changed 7 years ago by w.olchawa

  • Keywords Confirmed added; Templates removed wikitext removed
  • Version set to SVN

Confirmed using MW 1.12.0

comment:2 Changed 7 years ago by wwalc

Corrected sample:

{|{{Prettytable}} 
|- 
| {{Hl2}} | Cell 1 
| {{Hl2}} | Cell 2 
|}

This is a dup of #2069. I'm committing it now, new package should be available in an hour.

comment:3 Changed 7 years ago by wwalc

  • Status changed from new to closed
  • Resolution set to duplicate
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy