Hi,

according to the documentation, "A full img_assist tag" looks like this:

[img_assist|nid=2|title=My title|desc=My description|align=right|width=200|height=150|link=url,http://www.google.com]

This syntax is similar, but not identical to those used by the MediaWiki software (largely known from various Wikipedia projects). MediaWiki image syntax overview: Extended image syntax.

Since the usage of MediaWiki tags is pretty widely known, I'm using mediawiki_filter as default input format on several sites (it's fast, it's efficient, and it's easy to memorize). However, embedding images from Image module doesn't work well. Thus I'm issuing a feature request to provide (optional) MediaWiki syntax compatibility in 'image assist'.

The Origo project uses a similar setup; they have developed the 'mediawiki_filter' mentioned above, and they use 'Image Assist' "to facilitate image insertion"; also, according to the project showcase posted at d.o, they have already locally patched 'Image Assist' to use MediaWiki syntax, so most of the heavy lifting should be already done (at least I hope so).

However, I was not able to locate those patches and/or patched 'Image Assist' code at Origo's SVN repository, so I can not provide direct links to those patches yet.

For the moment I'd like to leave this as a question to the 'Image Assist' maintainers if you would consider adding optional support for MediaWiki syntax to the 'Image Assist' module, assuming that there are working patches? (question crossposted in the showcase comments)

Thank you & greetings,
-asb

Comments

asb’s picture

asb’s picture

Update: The patch from #1 is rolled against 6.2alpha3, but still applies to the security update 6.2alpha4:

# patch < img_assist-6.2alpha3.patch
patching file img_assist.module
Hunk #1 succeeded at 1002 (offset 8 lines).
Hunk #2 succeeded at 1026 (offset 8 lines).
Hunk #3 succeeded at 1047 (offset 8 lines).
Hunk #4 succeeded at 1063 (offset 8 lines).
Hunk #5 succeeded at 1123 (offset 8 lines).
patching file img_assist_popup.js

Greetings, -asb

sun’s picture

Status: Active » Closed (duplicate)