Opened 16 years ago

Closed 13 years ago

#2045 closed Bug (invalid)

Math formula issue in mediawiki+fckeditor

Reported by: kavine Owned by:
Priority: Must have (possibly next milestone) Milestone:
Component: Project : MediaWiki+FCKeditor Version: FCKeditor 2.6.4
Keywords: Cc: Doc


I want to use formula tools in my mediawiki. I integrate the fckeditor into mediawiki successfully. Then I install the math requirements, it do can render math images, but doesn't works well.

when I input a formula in the formular dialog, then submit, the math image doesn't show immediately, but a image placeholder. If I click the "wikitext" button, it seems work well with a conversion to real wikitext like "<math>formula</math>". Then click the "wikitext" button, the required math image turns out. The most important, while save this page, it becomes [[image:|formula]].

there must be a solution to this problem, for a successful example exists in "", it works quite well.

Change History (11)

comment:1 Changed 16 years ago by Wojciech Olchawa

Keywords: mediawiki fckeditor formula removed

#2046 has been marked as DUP

comment:2 Changed 16 years ago by alcoa

Is there any progress on this issue or news?

I am having the same issue here:

1) Add ''<math>e=mc^2</math>'' in FCKEditor (Edit Button)
2) Page displayed and rendered as: ''<img src='/bp/images/math/math-a43010f494bf0b6b8750078d33d00067.png' title='e=mc^2' alt='e=mc^2' class="tex">'' in HTML
3) Click Edit again and it is now rendered as ''[[Image:|e=mc^2]]'' in FCKEditor
4) Saving results in ''[[Image:|e=mc^2]]'' being displayed.

comment:3 Changed 16 years ago by Wiktor Walc

Check the latest version of extension, clear browser's cache and let me know if it works. If it still doesn't work, please provide more details about your MediaWiki configuration.

comment:4 Changed 16 years ago by Artur Formella

Keywords: Pending added

comment:5 Changed 15 years ago by Wiktor Walc

Resolution: expired
Status: newclosed

comment:6 Changed 15 years ago by Doc

Cc: Doc added
Resolution: expired
Status: closedreopened

This issue still occurs when using:

  • Mediawiki 1.13
  • FCKEditor 2.6.4
  • Revision #4355 of the extension.

The editor works correctly here:, but that is:

  • Mediawiki 1.11.2
  • FCKEditor 2.5.1
  • Unknown revision.

comment:7 Changed 15 years ago by Doc

A possible fix is this, in FCKeditorParser.body.php, change:

	case 'math':
						if($wgUseTeX){		//show fakeimage
							$output = $wgContLang->armourMath( MathRenderer::renderMath( $content ) );
						}else				//normal render
							$output = '<img _fckfakelement="true" class="FCK__MWMath" _fck_mw_math="'.$content.'" src="'.$wgScriptPath.'/skins/common/images/button_math.png" />';


case 'math':
						if($wgUseTeX){		//normal render
						$output = '<img _fckfakelement="true" class="FCK__MWMath" _fck_mw_math="'.$content.'" src="'.$wgScriptPath.'/skins/common/images/button_math.png" />';
						}else				//show fakeimage
						$output = $wgContLang->armourMath( MathRenderer::renderMath( $content ) );	

Basically switch the then clauses. Not pretty, and not as it should be done, but it does fix the issue. FCKEditor now shows a <<math>> blok, which accepts right-click -> Edit formula

comment:8 Changed 14 years ago by rolnxyz

Priority: NormalHigh
Version: FCKeditor 2.5.1FCKeditor 2.6.4

Thanks for your fix Doc. Still, it would be much better to actually see the image formulas instead of a <math> tag in fckeditor. I wish I could see the real image formulas, and not having those [[Image:]] issues.

comment:9 Changed 14 years ago by rolnxyz

I just went to your Sandbox, and as it is explained in the bug description, and it works well. How come? Should I reinstall FCKeditor? Is that a customized plugin version?

comment:10 Changed 14 years ago by Frederico Caldeira Knabben

Keywords: Pending removed

comment:11 Changed 13 years ago by Jakub Ś

Resolution: invalid
Status: reopenedclosed

MediaWiki and FCKEditor are no longer supported. Closing the ticked as invalid.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy