Opened 10 years ago

Closed 8 years ago

#5214 closed Bug (invalid)

Linked images does not proper work with FCKeditor

Reported by: filburt Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version:
Keywords: Cc:

Description

Since MW 1.14 it is possible to link images with the syntax:

[[file: example.png|50px|link=example]]

If editing a page with the FCKeditor these links are destroyed.

See http://www.mediawiki.org/wiki/Manual:Linked_images

Attachments (2)

FCK_img_link_fix.patch (1.9 KB) - added by Tami 9 years ago.
FCK_img_link_fix-2.patch (8.4 KB) - added by Tami 9 years ago.
extended and reworked patch

Download all attachments as: .zip

Change History (7)

comment:1 Changed 10 years ago by Frederico Caldeira Knabben

Component: GeneralProject : MediaWiki+FCKeditor

comment:2 Changed 10 years ago by Niels

I can confirm this bug, running mediawiki from trunk and fckeditor+mediawiki from the mediawiki extensions trunk.

Changed 9 years ago by Tami

Attachment: FCK_img_link_fix.patch added

comment:3 Changed 9 years ago by Tami

I also had trouble with this bug.

I have attached a partial fix, as editing of links in FCKeditor is still not possible but at least the links get no longer destroyed.

Depending on use case one like to remove

imgCaption = '';

from FCKeditor/plugins/mediawiki/fckplugin.js

Changed 9 years ago by Tami

Attachment: FCK_img_link_fix-2.patch added

extended and reworked patch

comment:4 Changed 9 years ago by Tami

I have reworked and extended the patch, it now has following functionality

  • no undefined index warning (issue with first patch)
  • links in images works (internal+external links)
  • links in images can now be edited in FCKeditor (including suggestions)
  • alt text gets not messed up anymore
  • image height can be set without a image width ( |x100px| Wikisyntax )

comment:5 Changed 8 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

FCKeditor was retired and is no longer supported. All active development was moved to its successor, CKEditor 3.x, that is a fully mature and far superior product. We recommend you upgrade as soon as possible.

Last edited 8 years ago by Jakub Ś (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy