The media module uses a [[{media}]] syntax to add various media into text field.
If the media module filter comes before the shortcode filter shortcodes don't work and vice versa the media module doesn't work.
Since the shortcode module already has an escaping functionality it is pretty easy to support the media module; this patch is against the latest dev. version.
The only bit I've add is this:
$escaped = FALSE;
if ((substr($c, 0, 3) == '[[{') && (substr($c, -3, 3) == '}]]')) {
$escaped = TRUE;
}
elseif ((substr($c, 0, 2) == '[[') && (substr($c, -2, 2) == ']]')) {
But the patch is rather large because my editor automatically removes trailing spaces.
| Comment | File | Size | Author |
|---|---|---|---|
| shortcode-7.x-2.x-dev_media_compatible.patch | 3.9 KB | jurriaanroelofs |
Comments
Comment #1
denes.szabo commentedI just fixed it, check it in the latest dev version, pls.
Comment #2
denes.szabo commentedJust set the status.
Comment #3.0
(not verified) commented.