Commit 51c51bca authored by Murz's avatar Murz Committed by joseph.olstad

Issue #2825653 by Murz, joseph.olstad: MEDIA_WYSIWYG_TOKEN_REGEX in Media...

Issue #2825653 by Murz, joseph.olstad: MEDIA_WYSIWYG_TOKEN_REGEX in Media Wysiwyg module conflicts with other tokens, using double square brackets [[token]]
parent 4479a380
......@@ -5,7 +5,7 @@
* Functions related to the WYSIWYG editor and the media input filter.
*/
define('MEDIA_WYSIWYG_TOKEN_REGEX', '/\[\[.*?\]\]/s');
define('MEDIA_WYSIWYG_TOKEN_REGEX', '/\[\[.+?"type":"media".+?\]\]/s');
/**
* Filter callback for media markup filter.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment